From 9ca4fc2bc0fbb25f59a33a7d0f246895f52a3d52 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 11 Feb 2005 23:39:58 +0000 Subject: [PATCH] * samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include to fix gcc 3.3 warnings about undeclared close(). --- vfs/ChangeLog | 5 +++++ vfs/samba/lib/netmask.c | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 6ab3db21d..e6b8a9b11 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2005-02-12 Andrew V. Samoilov + + * samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include + to fix gcc 3.3 warnings about undeclared close(). + 2005-02-09 Roland Illig * extfs/uzip.in: Widened the regular expression for infozip to diff --git a/vfs/samba/lib/netmask.c b/vfs/samba/lib/netmask.c index a8afd5b40..3980d4bd8 100644 --- a/vfs/samba/lib/netmask.c +++ b/vfs/samba/lib/netmask.c @@ -234,6 +234,9 @@ this should cover most of the rest of systems #elif defined(HAVE_NETMASK_AIX) #include +#ifdef HAVE_UNISTD_H +#include /* close() declaration for gcc in fussy mode */ +#endif #include #include #include @@ -246,9 +249,16 @@ this should cover most of the rest of systems #include #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];