summaryrefslogtreecommitdiff
path: root/src/collect/collect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/collect/collect.c')
-rw-r--r--src/collect/collect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/collect/collect.c b/src/collect/collect.c
index b99a170420..9d1a97e017 100644
--- a/src/collect/collect.c
+++ b/src/collect/collect.c
@@ -24,12 +24,16 @@
#include <stddef.h>
#include <unistd.h>
#include <signal.h>
+#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
+
+#ifdef __UCLIBC__
#include <linux/fcntl.h>
+#endif
#include "libudev.h"
#include "libudev-private.h"