Update of /cvsroot/pclasses/pclasses2/m4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13223/m4
Modified Files:
etr_socket_nsl.m4
Log Message:
- Modified configure check to support -Wall -Werror
Index: etr_socket_nsl.m4
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/m4/etr_socket_nsl.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- etr_socket_nsl.m4 22 Dec 2004 17:54:33 -0000 1.1.1.1
+++ etr_socket_nsl.m4 28 Apr 2005 10:52:40 -0000 1.2
@@ -18,10 +18,12 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+ #include <unistd.h>
],
[
struct in_addr add;
int sd = socket(AF_INET, SOCK_STREAM, 0);
+ close(sd);
inet_ntoa(add);
],
ac_cv_socket_libs=-lc, ac_cv_socket_libs=no)
@@ -34,10 +36,12 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+ #include <unistd.h>
],
[
struct in_addr add;
int sd = socket(AF_INET, SOCK_STREAM, 0);
+ close(sd);
inet_ntoa(add);
],
ac_cv_socket_libs=-lsocket, ac_cv_socket_libs=no)
@@ -51,10 +55,12 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+ #include <unistd.h>
],
[
struct in_addr add;
int sd = socket(AF_INET, SOCK_STREAM, 0);
+ close(sd);
inet_ntoa(add);
],
ac_cv_socket_libs="-lsocket -lnsl", ac_cv_socket_libs=no)
|