X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Fsys_select_h.m4;h=590554a11f285d770cdbfbdf61c907c82d930bc9;hb=cbd5934b1918d73022d1d1d9904112f3d6d7f187;hp=6ce09dbd42505a77f536c853cdb66ed3df8f403a;hpb=b4349b948ba2c352187158e241334abda6e473e9;p=pspp diff --git a/m4/sys_select_h.m4 b/m4/sys_select_h.m4 index 6ce09dbd42..590554a11f 100644 --- a/m4/sys_select_h.m4 +++ b/m4/sys_select_h.m4 @@ -1,4 +1,4 @@ -# sys_select_h.m4 serial 10 +# sys_select_h.m4 serial 11 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -56,6 +56,17 @@ AC_DEFUN([gl_HEADER_SYS_SELECT], if test $gl_cv_header_sys_select_h_selfcontained != yes; then gl_PREREQ_SYS_H_WINSOCK2 fi + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include +#endif +#include + ]], [select]) ]) AC_DEFUN([gl_SYS_SELECT_MODULE_INDICATOR],