[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26963 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26963 - libmicrohttpd/src/examples |
Date: |
Sun, 21 Apr 2013 19:57:26 +0200 |
Author: grothoff
Date: 2013-04-21 19:57:26 +0200 (Sun, 21 Apr 2013)
New Revision: 26963
Modified:
libmicrohttpd/src/examples/demo.c
Log:
-fix W32 build
Modified: libmicrohttpd/src/examples/demo.c
===================================================================
--- libmicrohttpd/src/examples/demo.c 2013-04-21 17:54:02 UTC (rev 26962)
+++ libmicrohttpd/src/examples/demo.c 2013-04-21 17:57:26 UTC (rev 26963)
@@ -510,13 +510,20 @@
return MHD_NO;
}
/* create directories -- if they don't exist already */
+#ifdef WINDOWS
+ (void) mkdir (uc->language);
+#else
(void) mkdir (uc->language, S_IRWXU);
+#endif
snprintf (fn, sizeof (fn),
"%s/%s",
uc->language,
- uc->category);
+ uc->category);
+#ifdef WINDOWS
+ (void) mkdir (fn);
+#else
(void) mkdir (fn, S_IRWXU);
-
+#endif
/* open file */
snprintf (fn, sizeof (fn),
"%s/%s/%s",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26963 - libmicrohttpd/src/examples,
gnunet <=