]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
do not require sys/syscall.h on non-linux platforms
authorEric Simpson <esimpson@ca.ibm.com>
Tue, 13 Oct 2020 16:55:05 +0000 (12:55 -0400)
committerEric Simpson <esimpson@ca.ibm.com>
Tue, 13 Oct 2020 16:55:05 +0000 (12:55 -0400)
In order to build util-linux on other platforms (such as IBM i), do not require the linux-specific sys/syscall.h.

lib/randutils.c

index bd2a8f6bf3bfeefcfcea9714290867a6b36aa446..84c00218734dbbfe163bb5f8eaa6308c489965cc 100644 (file)
@@ -13,9 +13,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/time.h>
-
+#ifdef __linux__
 #include <sys/syscall.h>
-
+#endif
 #include "c.h"
 #include "randutils.h"
 #include "nls.h"