summaryrefslogtreecommitdiff
path: root/src/mtd_probe/mtd_probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtd_probe/mtd_probe.c')
-rw-r--r--src/mtd_probe/mtd_probe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mtd_probe/mtd_probe.c b/src/mtd_probe/mtd_probe.c
index bab2e8e97e..ffba0eb51f 100644
--- a/src/mtd_probe/mtd_probe.c
+++ b/src/mtd_probe/mtd_probe.c
@@ -22,9 +22,13 @@
#include <mtd/mtd-user.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+
+#ifdef __UCLIBC__
#include <linux/fcntl.h>
+#endif
int main(int argc, char** argv)
{