[mpich2-commits] r6628 - in mpich2/trunk/src/pm/hydra: . include
jayesh at mcs.anl.gov
jayesh at mcs.anl.gov
Mon May 10 10:34:51 CDT 2010
Author: jayesh
Date: 2010-05-10 10:34:51 -0500 (Mon, 10 May 2010)
New Revision: 6628
Modified:
mpich2/trunk/src/pm/hydra/configure.in
mpich2/trunk/src/pm/hydra/include/hydra_base.h
Log:
Checking if the hdrs exist before including them
Modified: mpich2/trunk/src/pm/hydra/configure.in
===================================================================
--- mpich2/trunk/src/pm/hydra/configure.in 2010-05-07 21:13:10 UTC (rev 6627)
+++ mpich2/trunk/src/pm/hydra/configure.in 2010-05-10 15:34:51 UTC (rev 6628)
@@ -96,7 +96,8 @@
# Check if the necessary headers are available
AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h stdarg.h sys/types.h sys/socket.h \
sched.h sys/stat.h sys/param.h netinet/in.h netinet/tcp.h \
- sys/un.h netdb.h sys/time.h time.h ifaddrs.h arpa/inet.h)
+ sys/un.h netdb.h sys/time.h time.h ifaddrs.h arpa/inet.h \
+ errno.h poll.h fcntl.h netdb.h)
AC_CHECK_LIB(socket,socket,LDFLAGS="$LDFLAGS -lsocket",)
AC_CHECK_LIB(nsl,gethostbyname,LDFLAGS="$LDFLAGS -lnsl",)
Modified: mpich2/trunk/src/pm/hydra/include/hydra_base.h
===================================================================
--- mpich2/trunk/src/pm/hydra/include/hydra_base.h 2010-05-07 21:13:10 UTC (rev 6627)
+++ mpich2/trunk/src/pm/hydra/include/hydra_base.h 2010-05-10 15:34:51 UTC (rev 6628)
@@ -54,7 +54,9 @@
#include <arpa/inet.h>
#endif /* HAVE_ARPA_INET_H */
+#if defined HAVE_ERRNO_H
#include <errno.h>
+#endif /* HAVE_ERRNO_H */
#if !defined HAVE_GETTIMEOFDAY
#error "hydra requires gettimeofday support"
@@ -69,11 +71,21 @@
#define HYDRA_MAX_PATH 4096
/* sockets required headers */
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif /* HAVE_POLL_H */
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif /* HAVE_FCNTL_H */
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif /* HAVE_NETDB_H */
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif /* HAVE_NETINET_IN_H */
+#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
+#endif /* HAVE_NETINET_TCP_H */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
More information about the mpich2-commits
mailing list