httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@liege.ICS.UCI.EDU>
Subject 1.1b5 compiler warnings, Solaris 2.5
Date Tue, 02 Jul 1996 01:32:30 GMT
Mostly standard configuration, gcc 2.7.2, Solaris 2.5

gcc -c -g -Wall -DSTATUS -DSOLARIS2 util.c
util.c: In function `get_local_host':
util.c:1090: warning: implicit declaration of function `gethostname'

gcc -c -g -Wall -DSTATUS -DSOLARIS2 mod_auth.c
mod_auth.c: In function `authenticate_basic_user':
mod_auth.c:180: warning: implicit declaration of function `crypt'

Neither is important.  Solaris 2.5 has crypt.h, but I couldn't find
any declaration for gethostname (aside from the man page).

The fix for the second (mod_auth.c) is the same that was applied to
mod_auth_msql.c, i.e., add the following somewhere near the top:

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif

.....Roy

Mime
View raw message