* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include

<unistd.h> to fix gcc 3.3 warnings about undeclared close().
This commit is contained in:
Andrew V. Samoilov 2005-02-11 23:39:58 +00:00
parent 663792b91a
commit 9ca4fc2bc0
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-12 Andrew V. Samoilov <sav@bcs.zp.ua>
* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
<unistd.h> to fix gcc 3.3 warnings about undeclared close().
2005-02-09 Roland Illig <roland.illig@gmx.de>
* extfs/uzip.in: Widened the regular expression for infozip to

View File

@ -234,6 +234,9 @@ this should cover most of the rest of systems
#elif defined(HAVE_NETMASK_AIX)
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* close() declaration for gcc in fussy mode */
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@ -246,9 +249,16 @@ this should cover most of the rest of systems
#include <sys/sockio.h>
#endif
/*
* Prototype for gcc in fussy mode.
*/
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask);
/****************************************************************************
this one is for AIX
****************************************************************************/
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask)
{
char buff[2048];