You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 1997/09/16 14:08:10 UTC

[BUG] missing include in proxy_cache.c

My compiler barfs about this one (missing include,, so mktemp() is
used without prototype):
   proxy_cache.c   820: [error]:     'ptr to char' = 'int'

Easy to fix, too:

--- src/modules/proxy/proxy_cache.c.bak	Tue Sep 16 12:51:51 1997
+++ src/modules/proxy/proxy_cache.c	Tue Sep 16 14:03:44 1997
@@ -61,6 +61,7 @@
 #else
 #include <utime.h>
 #endif /* WIN32 */
+#include <stdlib.h>
 #include "multithread.h"
 #include "md5.h"
 

    Martin
-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      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

Re: [BUG] missing include in proxy_cache.c

Posted by Martin Kraemer <Ma...@mch.sni.de>.
Forget that patch. The reason for the error message was a different one:
<stdlib.h>, which _is_ included by default anyway, on this machine
IF ANSI-C MODE IS SELECTED doesn't prototype mktemp()!!!!! Stupid Header!

    Martin

On Tue, Sep 16, 1997 at 03:08:10PM +0200, Martin Kraemer wrote:
> My compiler barfs about this one (missing include,, so mktemp() is
> used without prototype):
>    proxy_cache.c   820: [error]:     'ptr to char' = 'int'
> 
> Easy to fix, too:
> +#include <stdlib.h>

-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      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