diff --git a/config.h.win32.in b/config.h.win32.in index 62e308586..0b272d309 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -584,9 +584,6 @@ /* #undef HAVE_SYS_PARAM_H */ #endif /* _MSC_VER or __DMC__ */ -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_POLL_H */ - /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_PRCTL_H */ diff --git a/configure.ac b/configure.ac index 9fb40d3a4..603e377ec 100644 --- a/configure.ac +++ b/configure.ac @@ -771,7 +771,7 @@ fi # check for header files -AC_CHECK_HEADERS([sys/param.h sys/poll.h sys/resource.h]) +AC_CHECK_HEADERS([sys/param.h sys/resource.h]) AC_CHECK_HEADERS([sys/select.h stdint.h inttypes.h sched.h malloc.h]) AC_CHECK_HEADERS([sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h sys/filio.h]) AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h]) @@ -2429,11 +2429,11 @@ dnl **************************************** glib_poll_includes=[" #include -#include +#include "] AS_IF([ test $ac_cv_header_sys_types_h = yes && - test $ac_cv_header_sys_poll_h = yes ], [ + test $ac_cv_func_poll = yes ], [ glib_failed=false GLIB_CHECK_VALUE(POLLIN, $glib_poll_includes, glib_failed=true) GLIB_CHECK_VALUE(POLLOUT, $glib_poll_includes, glib_failed=true) @@ -2458,9 +2458,6 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include #include - #ifdef HAVE_SYS_POLL_H - #include - #endif int main(void) { struct pollfd fds[1]; int fd; @@ -2803,9 +2800,6 @@ _______EOF if test "$glib_header_alloca_h" = "yes"; then echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile fi - if test x$glib_sys_poll_h = xyes; then - echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile - fi if test x$glib_included_printf != xyes; then echo " /* Specifies that GLib's g_print*() functions wrap the @@ -3124,10 +3118,6 @@ else glib_header_alloca_h="$ac_cv_header_alloca_h" fi -if test x$ac_cv_header_sys_poll_h = xyes ; then - glib_sys_poll_h=yes -fi - if test x$enable_included_printf = xyes ; then glib_included_printf=yes fi diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index e8b6bfeb2..48f41156b 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -544,7 +544,6 @@ g_source_remove_by_funcs_user_data g_source_remove_by_user_data -GLIB_HAVE_SYS_POLL_H GLIB_HAVE_ALLOCA_H alloca GLIB_USING_SYSTEM_PRINTF diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 41565be72..a6cf826de 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -31,11 +31,8 @@ #ifdef HAVE_SYS_PARAM_H #include #endif -#ifdef HAVE_SYS_POLL_H -#include #endif -#endif -#ifdef HAVE_POLL_H +#ifdef HAVE_POLL #include #endif #include diff --git a/glib/gpoll.c b/glib/gpoll.c index 66c5f0ee7..5d1e63269 100644 --- a/glib/gpoll.c +++ b/glib/gpoll.c @@ -55,8 +55,8 @@ #ifdef HAVE_SYS_TIME_H #include #endif /* HAVE_SYS_TIME_H */ -#ifdef GLIB_HAVE_SYS_POLL_H -# include +#ifdef HAVE_POLL +# include /* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0, * so we prefer our own poll emulation. diff --git a/tests/timeloop-basic.c b/tests/timeloop-basic.c index 56861f33e..2c11bc506 100644 --- a/tests/timeloop-basic.c +++ b/tests/timeloop-basic.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #define TRUE 1 #define FALSE 0