From: Sam Hartman Date: Wed, 28 Sep 2011 20:59:42 +0000 (+0000) Subject: Windows fix: add sys/cdefs.h to AC_CHECK_HEADERS and use guard macro X-Git-Tag: krb5-1.10-alpha1~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa253401b533ffe83f90746d026ec42ef7f8ad9b;p=krb5.git Windows fix: add sys/cdefs.h to AC_CHECK_HEADERS and use guard macro Signed-off-by: Kevin Wasserman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25274 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/configure.in b/src/configure.in index 6c3eebcc4..1926865c6 100644 --- a/src/configure.in +++ b/src/configure.in @@ -797,7 +797,7 @@ rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'], rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H']) AC_SUBST(rpcent_define) -AC_CHECK_HEADERS(sys/select.h sys/time.h unistd.h) +AC_CHECK_HEADERS(sys/select.h sys/time.h unistd.h sys/cdefs.h) if test $ac_cv_header_sys_select_h = yes; then GSSRPC__SYS_SELECT_H='#include ' else diff --git a/src/util/support/fnmatch.c b/src/util/support/fnmatch.c index 02091e8a5..d4d03420b 100644 --- a/src/util/support/fnmatch.c +++ b/src/util/support/fnmatch.c @@ -31,8 +31,9 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ - +#ifdef HAVE_SYS_CDEFS_H #include +#endif #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94";