[656] in Kerberos-V5-bugs
Compile error in appl/user_user/client.c
daemon@ATHENA.MIT.EDU (Joe Ramus)
Wed Aug 17 16:49:03 1994
Date: Wed, 17 Aug 94 13:48:43 PDT
From: ramus@nersc.gov (Joe Ramus)
To: krb5-bugs@MIT.EDU
Cc: auth-pilot@es.net
For Kerberos 5.4 Patch 2
-------------------------------
The Ansi C compiler on SunOS has a problem with appl/user_user/client.c
because the system has a prototype for strdup.
I think you have already dealt with the strdup configuration issue.
Some systems have it & some do not.
Perhaps this file was somehow forgotten.
Here is the "hack" that I did:
*** /krb5.4.2/build/src/appl/user_user/client.c Fri Aug 12 18:24:33 1994
--- /krb5.4.2/build/sun4/appl/user_user/client.c Wed Aug 17 13:16:57 1994
***************
*** 41,50 ****
--- 41,53 ----
#include <krb5/los-proto.h>
#include <com_err.h>
+ #ifdef NEED_STRDUP_PROTO
+ /* skip this stuff for SunOS Ansi C compiler */
#ifdef __STDC__
extern char *strdup(const char *);
#else
extern char *strdup();
+ #endif
#endif
krb5_error_code