]> git.wh0rd.org - home.git/blobdiff - test.c
cros-board: update
[home.git] / test.c
diff --git a/test.c b/test.c
index d2a5f6182c6e36deab0f5af623c20929e2937f97..4956067d1665a60929f6672d1f98225d43cb882a 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,7 +1,11 @@
 /* Test module for quick hacking. */
 
 #define _GNU_SOURCE
+#define _LARGEFILE_SOURCE
+#define _LARGEFILE64_SOURCE
+#define _FILE_OFFSET_BITS 64
 
+#include <termios.h>
 #include <assert.h>
 #include <dirent.h>
 #include <elf.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <float.h>
+#include <getopt.h>
+#include <grp.h>
 #include <inttypes.h>
 #include <langinfo.h>
 #include <limits.h>
 #include <locale.h>
 #include <pthread.h>
+#include <pwd.h>
 #include <regex.h>
 #include <signal.h>
+#include <stdarg.h>
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
 
+#ifdef __linux__
 #include <sys/auxv.h>
 #include <sys/epoll.h>
+#include <sys/mman.h>
 #include <sys/mount.h>
 #include <sys/prctl.h>
 #include <sys/signalfd.h>
@@ -41,6 +51,7 @@
 #include <sys/types.h>
 #include <sys/un.h>
 #include <sys/wait.h>
+#endif
 
 #if defined(__i386__) || defined(__x86_64__)
 #include <cpuid.h>