From: Jack Jansen Date: Fri, 14 Dec 2001 22:58:11 +0000 (+0000) Subject: We have strdup(), but not its prototype:-( X-Git-Tag: v2.2.1c1~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28f14012d7df8671f9526e0828a256ce3680441e;p=thirdparty%2FPython%2Fcpython.git We have strdup(), but not its prototype:-( --- diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index dd3c28abe2f4..dae4879cb2a3 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -119,9 +119,7 @@ void PyMac_InitApplet(void); /* from macgetargv: */ OSErr PyMac_init_process_location(void); -#ifndef HAVE_STRDUP char * strdup(const char *str); -#endif #ifdef USE_GUSI2 /* from pyGUSISIOUX.cp */ diff --git a/Mac/Include/pyconfig.h b/Mac/Include/pyconfig.h index dc79dcbea86e..ac4e15a96127 100644 --- a/Mac/Include/pyconfig.h +++ b/Mac/Include/pyconfig.h @@ -576,7 +576,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #undef HAVE_STATVFS /* Define if you have the strdup function. */ -#undef HAVE_STRDUP +#define HAVE_STRDUP /* Define if you have the strerror function. */ #define HAVE_STRERROR