summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/common.c5
-rw-r--r--utils/librfid-tool.c5
-rw-r--r--utils/mifare-tool.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/utils/common.c b/utils/common.c
index b286af6..08c7c1f 100644
--- a/utils/common.c
+++ b/utils/common.c
@@ -3,7 +3,10 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-//#include <libgen.h>
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
#include <librfid/rfid.h>
#include <librfid/rfid_scan.h>
diff --git a/utils/librfid-tool.c b/utils/librfid-tool.c
index 020b837..8921444 100644
--- a/utils/librfid-tool.c
+++ b/utils/librfid-tool.c
@@ -21,7 +21,10 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-/*#include <libgen.h>*/
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
#define _GNU_SOURCE
#include <getopt.h>
diff --git a/utils/mifare-tool.c b/utils/mifare-tool.c
index 7c3a51e..dd6f148 100644
--- a/utils/mifare-tool.c
+++ b/utils/mifare-tool.c
@@ -21,7 +21,10 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-//#include <libgen.h>
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
#define _GNU_SOURCE
#include <getopt.h>
personal git repositories of Harald Welte. Your mileage may vary