Not including libgen.h breaks 64bit builds (probably because the compiler assumes...
[librfid] / utils / librfid-tool.c
index 020b837..8921444 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-/*#include <libgen.h>*/
+
+#ifndef __MINGW32__
+#include <libgen.h>
+#endif
 
 #define _GNU_SOURCE
 #include <getopt.h>