]> arthur.barton.de Git - bup.git/commitdiff
_helpers.c: don't cygwin doesn't set any win32 defines.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 16 Feb 2011 22:56:38 +0000 (14:56 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 16 Feb 2011 22:56:38 +0000 (14:56 -0800)
...so let's #ifdef for cygwin specifically.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/_helpers.c

index b8390a63f095a64ea05c6b7341a5b82f75794977..158ac932234ab60a10ebf21615f9a2996c43e5a2 100644 (file)
@@ -10,7 +10,8 @@
 
 static int istty = 0;
 
-#ifdef __WIN32__
+// Probably we should use autoconf or something and set HAVE_PY_GETARGCARGV...
+#if __WIN32__ || __CYGWIN__
 
 // There's no 'ps' on win32 anyway, and Py_GetArgcArgv() isn't available.
 static void unpythonize_argv(void) { }
@@ -57,7 +58,7 @@ static void unpythonize_argv(void)
     }
 }
 
-#endif // not __WIN32__
+#endif // not __WIN32__ or __CYGWIN__
 
 
 static PyObject *selftest(PyObject *self, PyObject *args)