mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +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>
|
2005-02-09 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* extfs/uzip.in: Widened the regular expression for infozip to
|
* 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)
|
#elif defined(HAVE_NETMASK_AIX)
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h> /* close() declaration for gcc in fussy mode */
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -246,9 +249,16 @@ this should cover most of the rest of systems
|
|||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototype for gcc in fussy mode.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
this one is for AIX
|
this one is for AIX
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask)
|
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask)
|
||||||
{
|
{
|
||||||
char buff[2048];
|
char buff[2048];
|
||||||
|
Loading…
Reference in New Issue
Block a user