[828] in Kerberos-V5-bugs
include/krb5/ext-proto.h declares strdup
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Oct 4 10:09:47 1994
From: epeisach@MIT.EDU
Date: Tue, 4 Oct 1994 10:09:38 -0400
To: krb5-bugs@MIT.EDU
If strdup is in the header files, then don't declare strdup.
krb5.h includes config.h which includes autoconf.h (whic can define HAS_STRDUP)
So far from what I have seen, this has been the case... This caught me
when the prototype did not match the header file exactly...
Ezra
===================================================================
RCS file: /mit/krb5/.cvsroot/src/include/krb5/ext-proto.h,v
retrieving revision 5.14
diff -c -r5.14 ext-proto.h
*** 5.14 1994/08/18 21:19:05
--- ext-proto.h 1994/10/04 14:04:24
***************
*** 49,55 ****
--- 49,57 ----
#include <strings.h>
#endif
+ #ifndef HAS_STRDUP
extern char *strdup PROTOTYPE((const char *));
+ #endif
#ifdef HAS_UNISTD_H
#include <unistd.h>