summaryrefslogtreecommitdiff
path: root/utils/mifare-tool.c
diff options
context:
space:
mode:
authorploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-06-09 22:02:21 +0000
committerploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-06-09 22:02:21 +0000
commit1b6e20e4976a0c8f404bbb051fc4437f6b916c8b (patch)
treeefcc365cd3fcd89ca17dd120a65d7d480143c099 /utils/mifare-tool.c
parent15469fbc5636b275accd249705790d6873431dc6 (diff)
Not including libgen.h breaks 64bit builds (probably because the compiler assumes a default return type for basename which would be int, which is smaller than char*)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2001 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'utils/mifare-tool.c')
-rw-r--r--utils/mifare-tool.c5
1 files changed, 4 insertions, 1 deletions
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