summaryrefslogtreecommitdiff
path: root/src/ata_id/ata_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ata_id/ata_id.c')
-rw-r--r--src/ata_id/ata_id.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ata_id/ata_id.c b/src/ata_id/ata_id.c
index 500669ce94..93dbb53b10 100644
--- a/src/ata_id/ata_id.c
+++ b/src/ata_id/ata_id.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
+#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
@@ -38,9 +39,12 @@
#include <linux/fs.h>
#include <linux/cdrom.h>
#include <linux/bsg.h>
-#include <linux/fcntl.h>
#include <arpa/inet.h>
+#ifdef __UCLIBC__
+#include <linux/fcntl.h>
+#endif
+
#include "libudev.h"
#include "libudev-private.h"
#include "log.h"