portability fixes

version3
David Schweikert 8 years ago
parent 3b5c426985
commit 08e5cabe45

@ -80,7 +80,7 @@ AH_BOTTOM([
]) ])
dnl Checks for header files. dnl Checks for header files.
AC_CHECK_HEADERS(unistd.h sys/file.h stdlib.h sys/select.h) AC_CHECK_HEADERS(unistd.h sys/file.h stdlib.h sys/select.h getopt.h)
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile
doc/Makefile doc/Makefile

@ -1593,6 +1593,7 @@ int receive_reply(int socket,
} }
#if HAVE_SO_TIMESTAMP #if HAVE_SO_TIMESTAMP
{
/* ancilliary data */ /* ancilliary data */
struct cmsghdr* cmsg; struct cmsghdr* cmsg;
for (cmsg = CMSG_FIRSTHDR(&recv_msghdr); for (cmsg = CMSG_FIRSTHDR(&recv_msghdr);
@ -1603,6 +1604,7 @@ int receive_reply(int socket,
timestamp_set = 1; timestamp_set = 1;
} }
} }
}
#endif #endif
if (!timestamp_set) { if (!timestamp_set) {

Loading…
Cancel
Save