aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/mknod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index eee0ac71d..b10fe4fc3 100644
--- a/coreutils/mknod.c
+++ b/coreutils/mknod.c
@@ -36,7 +36,9 @@
//usage: "$ mknod /dev/fd0 b 2 0\n"
//usage: "$ mknod -m 644 /tmp/pipe p\n"
-#include <sys/sysmacros.h> // For makedev
+#ifdef __linux__
+# include <sys/sysmacros.h> // For makedev
+#endif
#include "libbb.h"
#include "libcoreutils/coreutils.h"