From: Avery Pennarun Date: Wed, 16 Feb 2011 22:56:38 +0000 (-0800) Subject: _helpers.c: don't cygwin doesn't set any win32 defines. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e5af4412dc302292ab9bc9a4f688ee5fa6fb4ef3;p=packages%2Fb%2Fbup.git _helpers.c: don't cygwin doesn't set any win32 defines. ...so let's #ifdef for cygwin specifically. Signed-off-by: Avery Pennarun --- diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index b8390a6..158ac93 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -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)