[1220] in Kerberos-V5-bugs
krb5b4pl3: include/krb5/ext-proto.h: AIX strdup prototype doesn't have "const"
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Mon Mar 20 21:27:53 1995
From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Mon, 20 Mar 1995 21:31:04 -0500
To: krb5-bugs@MIT.EDU
The prototype for strdup in /usr/include/string.h on AIX 3.2.5 doesn't
have "const" in it, which causes a conflict with
include/krb5/ext-proto.h. Here's a fix (it may be gross, but it
works):
--- ext-proto.h 1995/03/21 02:27:20 1.1
+++ ext-proto.h 1995/03/21 02:28:00
@@ -49,7 +49,11 @@
#include <strings.h>
#endif
+#ifdef _AIX
+extern char *strdup PROTOTYPE((char *));
+#else
extern char *strdup PROTOTYPE((const char *));
+#endif
#ifdef HAS_UNISTD_H
#include <unistd.h>