Fix linux build without libc wrappers (From Fredrik Höglund)

This commit is contained in:
Benjamin Herrenschmidt
2006-02-13 04:56:27 +00:00
parent 2dc7b5e0d9
commit 1a4f20541a
7 changed files with 31 additions and 7 deletions

View File

@@ -78,14 +78,16 @@ fbdevhwSetup(pointer module, pointer opts, int *errmaj, int *errmin)
return (pointer)1;
}
}
#else /* XFree86LOADER */
#endif /* XFree86LOADER */
#include <fcntl.h>
#include <errno.h>
#include <sys/mman.h>
#endif /* XFree86LOADER */
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
/* -------------------------------------------------------------------- */
/* our private data, and two functions to allocate/free this */