[netperf-dev] netperf2 commit notice r366 - in trunk: . src

raj at netperf.org raj at netperf.org
Tue Nov 16 17:25:41 PST 2010


Author: raj
Date: 2010-11-16 17:25:41 -0800 (Tue, 16 Nov 2010)
New Revision: 366

Modified:
   trunk/autogen.sh
   trunk/config.h.in
   trunk/configure
   trunk/configure.ac
   trunk/src/netlib.c
Log:
include syscall.h

Modified: trunk/autogen.sh
===================================================================
--- trunk/autogen.sh	2010-10-28 19:15:07 UTC (rev 365)
+++ trunk/autogen.sh	2010-11-17 01:25:41 UTC (rev 366)
@@ -2,4 +2,4 @@
 
 aclocal -I src/missing/m4 \
 && automake  --add-missing \
-&& autoconf 
+&& autoconf && autoheader

Modified: trunk/config.h.in
===================================================================
--- trunk/config.h.in	2010-10-28 19:15:07 UTC (rev 365)
+++ trunk/config.h.in	2010-11-17 01:25:41 UTC (rev 366)
@@ -205,6 +205,9 @@
 /* Define to 1 if <netinet/in.h> defines `struct sockaddr_storage' */
 #undef HAVE_STRUCT_SOCKADDR_STORAGE
 
+/* Define to 1 if you have the <syscall.h> header file. */
+#undef HAVE_SYSCALL_H
+
 /* Define to 1 if you have the <sys/ioctl.h> header file. */
 #undef HAVE_SYS_IOCTL_H
 

Modified: trunk/configure
===================================================================
--- trunk/configure	2010-10-28 19:15:07 UTC (rev 365)
+++ trunk/configure	2010-11-17 01:25:41 UTC (rev 366)
@@ -4492,7 +4492,8 @@
 
 
 
-for ac_header in arpa/inet.h endian.h errno.h fcntl.h limits.h malloc.h netdb.h netinet/in.h signal.h stdlib.h string.h strings.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/time.h unistd.h ifaddrs.h sys/sockio.h sys/sysinfo.h
+
+for ac_header in arpa/inet.h endian.h errno.h fcntl.h limits.h malloc.h netdb.h netinet/in.h signal.h stdlib.h string.h strings.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/time.h unistd.h ifaddrs.h sys/sockio.h sys/sysinfo.h syscall.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2010-10-28 19:15:07 UTC (rev 365)
+++ trunk/configure.ac	2010-11-17 01:25:41 UTC (rev 366)
@@ -36,7 +36,7 @@
 # Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([arpa/inet.h endian.h errno.h fcntl.h limits.h malloc.h netdb.h netinet/in.h signal.h stdlib.h string.h strings.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/time.h unistd.h ifaddrs.h sys/sockio.h sys/sysinfo.h])
+AC_CHECK_HEADERS([arpa/inet.h endian.h errno.h fcntl.h limits.h malloc.h netdb.h netinet/in.h signal.h stdlib.h string.h strings.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h sys/time.h unistd.h ifaddrs.h sys/sockio.h sys/sysinfo.h syscall.h])
 
 # Some platforms require these.  There may be a better way.
 AC_HAVE_LIBRARY(socket)

Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c	2010-10-28 19:15:07 UTC (rev 365)
+++ trunk/src/netlib.c	2010-11-17 01:25:41 UTC (rev 366)
@@ -60,6 +60,9 @@
  /* If you have trouble compiling you may want to add "sys/" raj 10/95 */
 #include <limits.h>
 #include <signal.h>
+#ifdef HAVE_SYSCALL_H
+#include <syscall.h>
+#endif
 #ifdef MPE
 #  define NSIG _NSIG
 #endif /* MPE */



More information about the netperf-dev mailing list