From: Ken Raeburn Date: Thu, 20 Jun 2002 19:43:41 +0000 (+0000) Subject: * configure.in: Check for sys/uio.h. X-Git-Tag: krb5-1.3-alpha1~671 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b1d8a508ff0564dcb8efde89224aba183282edc;p=krb5.git * configure.in: Check for sys/uio.h. * port-sockets.h [!_WIN32 && !HAVE_MACSOCK_H]: Include sys/uio.h if available, to get struct iovec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14548 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index fbb8704b5..871164c7e 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2002-06-20 Ken Raeburn + + * configure.in: Check for sys/uio.h. + * port-sockets.h [!_WIN32 && !HAVE_MACSOCK_H]: Include sys/uio.h + if available, to get struct iovec. + 2002-06-18 Ken Raeburn * port-sockets.h (sg_buf): New typedef name for OS-specific diff --git a/src/include/configure.in b/src/include/configure.in index a5a548dcb..56f5baea1 100644 --- a/src/include/configure.in +++ b/src/include/configure.in @@ -70,7 +70,7 @@ AC_CHECK_HEADER(termios.h,dnl AC_DEFINE(POSIX_TERMIOS,1,[Define if termios.h exists and tcsetattr exists]))]) dnl KRB5_SIGTYPE -AC_CHECK_HEADERS(stdlib.h string.h stddef.h unistd.h sys/types.h sys/file.h sys/param.h sys/stat.h sys/time.h netinet/in.h macsock.h xom.h) +AC_CHECK_HEADERS(stdlib.h string.h stddef.h unistd.h sys/types.h sys/file.h sys/param.h sys/stat.h sys/time.h netinet/in.h macsock.h xom.h sys/uio.h) AC_HEADER_STDARG KRB5_AC_INET6 dnl diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 0681ddb0b..749140f67 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -80,6 +80,9 @@ int win_socket_initialize(); #include /* For SOCK_*, AF_*, etc */ #include /* For struct timeval */ #include /* For struct ifconf, for localaddr.c */ +#ifdef HAVE_SYS_UIO_H +#include /* For struct iovec, for sg_buf */ +#endif /* * Compatability with WinSock calls on MS-Windows...