Windows fix: add sys/cdefs.h to AC_CHECK_HEADERS and use guard macro
authorSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:59:42 +0000 (20:59 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:59:42 +0000 (20:59 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25274 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in
src/util/support/fnmatch.c

index 6c3eebcc4471c26fe058b9480f09b61e94c27bc0..1926865c673239aaac7ec7c508ab3c240d84e8b5 100644 (file)
@@ -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 <sys/select.h>'
 else
index 02091e8a58a360a1b5fae666936d910e24daacb4..d4d03420bae5fb1bf2eb7053368aa47281a180d3 100644 (file)
@@ -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 <sys/cdefs.h>
+#endif
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
 static char sccsid[] = "@(#)fnmatch.c  8.2 (Berkeley) 4/16/94";