squid-1.0.0 compiler warnings

From: James Aldridge <jhma@dont-contact.us>
Date: Tue, 02 Jul 1996 12:37:22 +0200

SGI Irix 5.3:

Two files generate compiler warning messages during the build:

| gcc -g -O -Wall -ansi -I. -I../include -I./../include -c stat.c
| stat.c: In function `info_get':
| stat.c:562: warning: implicit declaration of function `getrusage'
| stat.c:566: warning: implicit declaration of function `getpagesize'

and

| gcc -g -O -Wall -ansi -I. -I../include -I./../include -c tools.c
| tools.c: In function `PrintRusage':
| tools.c:202: warning: implicit declaration of function `getrusage'
| tools.c:206: warning: implicit declaration of function `getpagesize'
| tools.c: In function `getMyHostname':
| tools.c:359: warning: implicit declaration of function `gethostname'
| tools.c: In function `leave_suid':
| tools.c:413: warning: implicit declaration of function `seteuid'
| tools.c: In function `getCurrentTime':
| tools.c:517: warning: implicit declaration of function `gettimeofday'

I'm not too worried by this as they are all integer or void functions anyway
but the following patch clears up all but the seteuid() warning:

---------- cut here ----------
*** include/config.h.in.Orig Fri May 24 08:40:38 1996
--- include/config.h.in Tue Jul 2 12:27:48 1996
***************
*** 58,63 ****
--- 58,64 ----
  #define _SQUID_FREEBSD_
  #elif defined(__sgi__) /* SGI */
  #define _SQUID_SGI_
+ #define _SGI_SOURCE
  #elif defined(__NeXT__)
  #define _SQUID_NEXT_
  #elif defined(__bsdi__)
---------- cut here ----------

James

======= ___ === James Aldridge, Network Engineer,
====== / / / ___ ____ _/_ ==== EUnet Communications Services BV
===== /--- / / / / /___/ / ===== Singel 540, 1017 AZ Amsterdam, NL
==== /___ /___/ / / /___ /_ ====== Tel. +31 20 6233803; Fax. +31 20 6224657
=== ======= [ 24hr emergency number +31 20 4210865 ]
Received on Tue Jul 02 1996 - 03:38:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:34 MST