summaryrefslogtreecommitdiff
path: root/console/vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'console/vga.c')
-rw-r--r--console/vga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console/vga.c b/console/vga.c
index 9ad9c08c..87c863c7 100644
--- a/console/vga.c
+++ b/console/vga.c
@@ -25,6 +25,7 @@
#include <sys/io.h>
#include <sys/mman.h>
#include <sys/types.h>
+#include <string.h>
#include "vga-hw.h"
#include "vga.h"
@@ -41,7 +42,7 @@ vga_init (void)
error_t err;
int fd;
- if (io_perm (VGA_MIN_REG, VGA_MAX_REG - VGA_MIN_REG + 1, 1) < 0)
+ if (ioperm (VGA_MIN_REG, VGA_MAX_REG - VGA_MIN_REG + 1, 1) < 0)
return errno;
fd = open ("/dev/mem", O_RDWR);