dgaudet 97/09/15 20:44:30
Modified: src/main conf.h Log: When you NEED_ a function, you should declare the prototype for it as well. (old patch from Martin) Submitted by: Martin Kraemer Reviewed by: Dean Gaudet Revision Changes Path 1.140 +26 -0 apachen/src/main/conf.h Index: conf.h =================================================================== RCS file: /export/home/cvs/apachen/src/main/conf.h,v retrieving revision 1.139 retrieving revision 1.140 diff -u -r1.139 -r1.140 --- conf.h 1997/09/16 00:25:45 1.139 +++ conf.h 1997/09/16 03:44:29 1.140 @@ -948,3 +948,29 @@ long vfprintf(FILE *, char *, va_list); #endif /* SUNOS_LIB_PROTOTYPES */ + +/* The assumption is that when the functions are missing, + * then there's no matching prototype available either. + * Declare what is needed exactly as the replacement routines implement it. + */ +#ifdef NEED_STRDUP +extern char *strdup (const char *str); +#endif +#ifdef NEED_STRCASECMP +extern int strcasecmp (const char *a, const char *b); +#endif +#ifdef NEED_STRNCASECMP +extern int strncasecmp (const char *a, const char *b, int n); +#endif +#ifdef NEED_INITGROUPS +extern int initgroups(const char *name, gid_t basegid); +#endif +#ifdef NEED_WAITPID +extern int waitpid(pid_t pid, int *statusp, int options); +#endif +#ifdef NEED_STRERROR +extern char *strerror (int err); +#endif +#ifdef NEED_DIFFTIME +extern double difftime(time_t time1, time_t time0); +#endif