Another samba/lib/netmask.c warning fix



-- 
Regards,
Andrew V. Samoilov

________________________________________________________________
GET INTERNET ACCESS FROM BCS! http://www.bcs.zp.ua
Join BCS today! For your FREE webmail, visit: http://email.zp.ua/
vfs/ChangeLog:

	* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
	<unistd.h> to fix gcc 3.3 warnings about undeclared close().

--- samba/lib/netmask.c~	Mon Aug 30 12:08:47 2004
+++ samba/lib/netmask.c	Fri Feb 11 16:20:53 2005
@@ -234,6 +234,9 @@ this should cover most of the rest of sy
 #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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]