httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: porting == fear
Date Thu, 13 Nov 1997 15:13:18 GMT
On Thu, Nov 13, 1997 at 10:08:09AM -0400, Ben Hyde wrote:
> Back away from enabling all of SUNOS_LIB_PROTOTYPES, instead
> prototype only the things we require in util.c.

> +#if defined(SUNOS4)
>  #include <stdio.h>
> +extern int fgetc(FILE *);
> +extern char *fgets(char *s, int, FILE*);
> +extern int fclose(FILE *);
> +#else
> +#include <stdio.h>
> +#endif

How about
>  #include <stdio.h>
> +#if defined(SUNOS4)
> +extern int fgetc(FILE *);
> +extern char *fgets(char *s, int, FILE*);
> +extern int fclose(FILE *);
> +#define strtoul strtol
> +#endif
? The <stdio.h> is always included, and you might want the
strtoul() redefine.

+1 on concept, anyway.
    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@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

Mime
View raw message