From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 21 Oct 2021 06:27:42 +0000 (-0400)
Subject: test.c: improve headers
X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ebe1c592cdc81aab6893f05718bad90ca2103ae2;p=home.git

test.c: improve headers
---

diff --git a/test.c b/test.c
index e58a769..4956067 100644
--- a/test.c
+++ b/test.c
@@ -14,11 +14,13 @@
 #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>
@@ -35,6 +37,7 @@
 #include <arpa/inet.h>
 #include <netinet/in.h>
 
+#ifdef __linux__
 #include <sys/auxv.h>
 #include <sys/epoll.h>
 #include <sys/mman.h>
@@ -48,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>