← Commit list

e22af94af

Chris Rees
Chris Rees
2011-01-24
FAILED Duration: 230s

Subject

FreeBSD compat for makedev

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/makedev.c+8 -2
@@ -8,8 +8,14 @@
/* We do not include libbb.h - #define makedev() is there! */
#include "platform.h"
-#include <features.h>
-#include <sys/sysmacros.h>
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
+ || defined(__APPLE__) \
+ )
+# include <features.h>
+# include <sys/sysmacros.h>
+#else
+# include <sys/types.h>
+#endif
#ifdef __GLIBC__
/* At least glibc has horrendously large inline for this, so wrap it */