]> granicus.if.org Git - python/commitdiff
We have strdup(), but not its prototype:-(
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 14 Dec 2001 22:58:11 +0000 (22:58 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 14 Dec 2001 22:58:11 +0000 (22:58 +0000)
Mac/Include/macglue.h
Mac/Include/pyconfig.h

index dd3c28abe2f456e68dec59f370f6e3b4a8612ca5..dae4879cb2a36b44b92032b10ca910cc176ccecd 100644 (file)
@@ -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 */
index dc79dcbea86eb520a1b7976d1feb8e1a89a8d05d..ac4e15a96127688be04d4a8ce9fad5c2d04ad01f 100644 (file)
@@ -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