Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id CAA04400; Wed, 27 Aug 1997 02:33:47 -0700 (PDT) Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id CAA04388 for ; Wed, 27 Aug 1997 02:33:37 -0700 (PDT) Received: from deejai.mch.sni.de (deejai.mch.sni.de [139.25.113.10]) by thoth.mch.sni.de (8.8.6/8.8.6) with ESMTP id LAA19697 for ; Wed, 27 Aug 1997 11:33:32 +0200 (MDT) Received: (from martin@localhost) by deejai.mch.sni.de (8.8.5/8.8.5) id LAA06563 for new-httpd@apache.org; Wed, 27 Aug 1997 11:33:30 +0200 (MET DST) From: Martin Kraemer Message-Id: <199708270933.LAA06563@deejai.mch.sni.de> Subject: [PATCH] conf.h: portability topics To: new-httpd@apache.org (Apache Mailing List) Date: Wed, 27 Aug 1997 11:33:29 +0200 (MET DST) X-Face: %0^)uynSVIl4|'Kt4&K^"0e)QSD,RsmBJzgofk.'s$\bu*4XXru?d/!|;"x{U(7#3z+wm^siToy]g3L'd1j`@kGb^4*CzYI-(.)ldeS8,G,X?Nko X-Operating-System: SINIX-D 5.41 C1001 X-Organization: Siemens-Nixdorf Informationssysteme AG (Muenchen, W.Germany) X-Phone: +49-89-636-46021 X-Fax: +49-89-636-44994 X-Disclaimer: THE COMMENTS CONTAINED IN THIS MESSAGE REFLECT THE VIEWS OF THE WRITER AND ARE NOT NECESSARILY THE VIEWS OF SIEMENS NIXDORF AG X-No-Junk-Mail: I do not want to get *any* junk mail. X-Mailer: ELM [version 2.4ME+ PL19 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org There are a couple of NEED_ #defines in apache (and their function implementation counterparts) which have no matching prototype definitions. The following patch to conf.h adds them: Index: main/conf.h =================================================================== RCS file: /home/cvs/apachen/src/main/conf.h,v retrieving revision 1.5 diff -u -r1.5 conf.h --- conf.h 1997/08/25 12:13:19 1.5 +++ conf.h 1997/08/27 09:28:38 @@ -947,3 +950,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 -- | S I E M E N S | | Siemens Nixdorf | ------------- | Voice: +49-89-636-46021 | Informationssysteme AG | N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request