summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 15:56:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 15:56:18 +0100
commitb11554f611bfa0eab0887a4c58f747df30fa30c3 (patch)
treee24f8b3cd5f1bbde50c701e59719383235acd47a /src
parentf657702e8988915b5874938c476eb2fcfdb793a4 (diff)
include mingw/io.h for mkdir()
Diffstat (limited to 'src')
-rw-r--r--src/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 5d19986..42243ab 100644
--- a/src/common.c
+++ b/src/common.c
@@ -40,6 +40,9 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#ifdef HAVE_MINGW_IO_H
+#include <mingw/io.h>
+#endif
#include "intrf.h"
#include "log.h"
@@ -274,7 +277,7 @@ void create_dir(const char *dir_name, const unsigned int is_dir_name)
mkdir(path, 0775);
#endif
#else
-#warn You need a mkdir function!
+#warning You need a mkdir function!
#endif
}
} while(pos!=NULL);