summaryrefslogtreecommitdiff
path: root/src/scsi_id/scsi_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scsi_id/scsi_serial.c')
-rw-r--r--src/scsi_id/scsi_serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scsi_id/scsi_serial.c b/src/scsi_id/scsi_serial.c
index 7c5f7a35ef..b9a94e66e6 100644
--- a/src/scsi_id/scsi_serial.c
+++ b/src/scsi_id/scsi_serial.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
+#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
@@ -32,7 +33,10 @@
#include <scsi/sg.h>
#include <linux/types.h>
#include <linux/bsg.h>
+
+#ifdef __UCLIBC__
#include <linux/fcntl.h>
+#endif
#include "libudev.h"
#include "libudev-private.h"