This patch avoid the following to warnings during ./configure: configure: WARNING: sys/mount.h: present but cannot be compiled configure: WARNING: sys/mount.h: check for missing prerequisite headers? configure: WARNING: sys/mount.h: proceeding with the preprocessor's result configure: WARNING: sys/user.h: present but cannot be compiled configure: WARNING: sys/user.h: check for missing prerequisite headers? configure: WARNING: sys/user.h: proceeding with the preprocessor's result Gerald ChangeLog: When checking for sys/mount.h and sys/user.h also include sys/types.h if available. Index: configure.ac =================================================================== RCS file: /home/wine/wine/configure.ac,v retrieving revision 1.87 diff -u -3 -p -r1.87 configure.ac --- configure.ac 31 Oct 2002 03:41:57 -0000 1.87 +++ configure.ac 4 Nov 2002 07:27:13 -0000 @@ -1001,7 +1001,6 @@ AC_CHECK_HEADERS(\ sys/lwp.h \ sys/mman.h \ sys/modem.h \ - sys/mount.h \ sys/msg.h \ sys/param.h \ sys/poll.h \ @@ -1019,7 +1018,6 @@ AC_CHECK_HEADERS(\ sys/times.h \ sys/uio.h \ sys/un.h \ - sys/user.h \ sys/v86.h \ sys/v86intr.h \ sys/vfs.h \ @@ -1032,6 +1030,18 @@ AC_CHECK_HEADERS(\ utime.h \ ) AC_HEADER_STAT() + +dnl *** Check for sys/mount.h +AC_CHECK_HEADERS(sys/mount.h,,, + [#if HAVE_SYS_TYPES_H + # include <sys/types.h> + #endif]) + +dnl *** Check for sys/user.h +AC_CHECK_HEADERS(sys/user.h,,, + [#if HAVE_SYS_TYPES_H + # include <sys/types.h> + #endif]) dnl *** Check for net/if.h AC_CHECK_HEADERS(net/if.h,,,