summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-12-14 22:58:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-12-14 22:58:11 (GMT)
commit28f14012d7df8671f9526e0828a256ce3680441e (patch)
tree4a57ad1d32395e469e6dfea8e99cce483d68b5ca /Mac/Include
parent031b779d439961c594e8c80df8f9e1f64b408921 (diff)
downloadcpython-28f14012d7df8671f9526e0828a256ce3680441e.zip
cpython-28f14012d7df8671f9526e0828a256ce3680441e.tar.gz
cpython-28f14012d7df8671f9526e0828a256ce3680441e.tar.bz2
We have strdup(), but not its prototype:-(
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macglue.h2
-rw-r--r--Mac/Include/pyconfig.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index dd3c28a..dae4879 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 dc79dcb..ac4e15a 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