From: Simon Josefsson Date: Mon, 30 Oct 2006 08:53:20 +0000 (+0000) Subject: Simplify #include's using gnulib modules. X-Git-Tag: gnutls_1_5_4~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27241018bdd26349578bb4b8c8f6baf0bbaaaa6a;p=thirdparty%2Fgnutls.git Simplify #include's using gnulib modules. --- diff --git a/configure.in b/configure.in index 0a2c672094..66a4144704 100644 --- a/configure.in +++ b/configure.in @@ -191,8 +191,7 @@ AC_MSG_RESULT([*** AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_HEADERS(unistd.h strings.h stddef.h alloca.h) -AC_CHECK_HEADERS(sys/stat.h sys/types.h sys/socket.h) +AC_CHECK_HEADERS(strings.h alloca.h) AC_CHECK_HEADERS(errno.h sys/time.h time.h) AC_CHECK_HEADERS(math.h limits.h float.h stdarg.h ctype.h) dnl opencdk diff --git a/lib/defines.h b/lib/defines.h index 0126e81c8a..68e766158c 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation + * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation * * Author: Nikos Mavroyanopoulos * @@ -42,21 +42,10 @@ typedef int ssize_t; #endif -#ifdef HAVE_STRINGS_H -# include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_SYS_STAT_H -# include -#endif - -#ifdef HAVE_UNISTD_H -# include -#endif +#include +#include +#include +#include #if TIME_WITH_SYS_TIME # include @@ -69,10 +58,6 @@ typedef int ssize_t; # endif #endif -#ifdef HAVE_SYS_SOCKET_H -# include -#endif - #include "memmem.h" #define SIZEOF_UNSIGNED_LONG_INT SIZEOF_UNSIGNED_LONG