Code

make MAP_PRIVATE conditional on AIX not being defined ... should fix part of #216
[rrdtool-all.git] / program / src / rrd_getopt1.c
index 1ace77e24c9157e5254a485d0866b417bc5411e8..15bd2a974be276ee5b0dc18a9387771c032fc576 100644 (file)
 #endif
 
 int getopt_long(int argc,
+#ifdef WIN32
                 char** argv,
+#else // WIN32
+                char* const* argv,
+#endif //WIN32
                 const char* options,
                 const struct option* long_options,
                 int* opt_index)
@@ -80,7 +84,11 @@ int getopt_long(int argc,
    instead.  */
 
 int getopt_long_only(int argc,
+#ifdef WIN32
                      char** argv,
+#else // WIN32
+                     char* const* argv,
+#endif //WIN32
                      const char* options,
                      const struct option* long_options,
                      int* opt_index)