mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
* 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:
parent
663792b91a
commit
9ca4fc2bc0
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user