* configure.in: Check for sys/uio.h.
authorKen Raeburn <raeburn@mit.edu>
Thu, 20 Jun 2002 19:43:41 +0000 (19:43 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 20 Jun 2002 19:43:41 +0000 (19:43 +0000)
* 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

src/include/ChangeLog
src/include/configure.in
src/include/port-sockets.h

index fbb8704b5f7171bef13c18e1275934e19735ce3d..871164c7e919855d398fc23f842bcf75cbb10334 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-20  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * port-sockets.h (sg_buf): New typedef name for OS-specific
index a5a548dcbe3faa7a11f7959cd6f439949fb65023..56f5baea11bf6ff6cd7a82b207a545a6167d969a 100644 (file)
@@ -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
index 0681ddb0b5110e4b140dde0dd37b98156e169818..749140f6709eec8765af63b0cd10211313d91224 100644 (file)
@@ -80,6 +80,9 @@ int win_socket_initialize();
 #include <sys/socket.h>                /* For SOCK_*, AF_*, etc */
 #include <sys/time.h>          /* For struct timeval */
 #include <net/if.h>            /* For struct ifconf, for localaddr.c */
+#ifdef HAVE_SYS_UIO_H
+#include <sys/uio.h>           /* For struct iovec, for sg_buf */
+#endif
 
 /*
  * Compatability with WinSock calls on MS-Windows...