X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=console-tools%2Floadfont.c;h=d6650019554dd59cfb99d0d7a146cafdec38c2aa;hb=9c60b290717e3ff1b9a8e09da4abe6f46964aa82;hp=d7bd7e8f5ecc5b6b48a638bb3e1de39e77a56257;hpb=67991cf824f8df27e74c92d754fb507681c69ce6;p=oweals%2Fbusybox.git diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index d7bd7e8f5..d66500195 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c @@ -7,7 +7,6 @@ * Loads the console font, and possibly the corresponding screen map(s). * (Adapted for busybox by Matej Vela.) */ -#include "busybox.h" #include #include #include @@ -20,6 +19,7 @@ #include #include #include +#include "busybox.h" static const int PSF_MAGIC1 = 0x36; static const int PSF_MAGIC2 = 0x04; @@ -46,9 +46,9 @@ extern int loadfont_main(int argc, char **argv) if (argc != 1) show_usage(); - fd = open("/dev/tty0", O_RDWR); + fd = open(CURRENT_VC, O_RDWR); if (fd < 0) - perror_msg_and_die("Error opening /dev/tty0"); + perror_msg_and_die("Error opening " CURRENT_VC); loadnewfont(fd); return EXIT_SUCCESS;