PATCH: configure.ac and HAVE_SYS_TYPES.H
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Thu Nov 7 03:57:25 CST 2002
While debugging something, I noticed that we were not consistent here.
Gerald
ChangeLog:
Only #include <sys/types.h> if we actually HAVE_SYS_TYPES_H.
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.89
diff -u -3 -p -r1.89 configure.ac
--- configure.ac 6 Nov 2002 22:00:10 -0000 1.89
+++ configure.ac 7 Nov 2002 09:54:23 -0000
@@ -1146,7 +1146,9 @@ then
AC_CACHE_CHECK( [whether sys/vfs.h defines statfs],
wine_cv_sys_vfs_has_statfs,
AC_TRY_COMPILE([
- #include <sys/types.h>
+ #ifdef HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ #endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
@@ -1170,7 +1172,9 @@ then
AC_CACHE_CHECK( [whether sys/statfs.h defines statfs],
wine_cv_sys_statfs_has_statfs,
AC_TRY_COMPILE([
- #include <sys/types.h>
+ #ifdef HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ #endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
@@ -1192,7 +1196,9 @@ then
AC_CACHE_CHECK( [whether sys/mount.h defines statfs],
wine_cv_sys_mount_has_statfs,
AC_TRY_COMPILE([
- #include <sys/types.h>
+ #ifdef HAVE_SYS_TYPES_H
+ # include <sys/types.h>
+ #endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
@@ -1212,7 +1218,9 @@ fi
dnl **** FIXME: what about mixed cases, where we need two of them? ***
WINE_CHECK_STRUCT_MEMBER(statfs,f_bfree,
-[#include <sys/types.h>
+[#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
@@ -1230,7 +1238,9 @@ WINE_CHECK_STRUCT_MEMBER(statfs,f_bfree,
[AC_DEFINE(STATFS_HAS_BFREE, 1, [Define if the struct statfs has the member bfree])])
WINE_CHECK_STRUCT_MEMBER(statfs,f_bavail,
-[#include <sys/types.h>
+[#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
More information about the wine-patches
mailing list