unlink: fix m4 detection
authorEric Blake <ebb9@byu.net>
Tue, 8 Dec 2009 00:15:07 +0000 (17:15 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 8 Dec 2009 03:58:17 +0000 (20:58 -0700)
The m4 test failed under -Werror due to implicit declaration.

* m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/unlink.m4

index 73e6faa..7b78dca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-12-07  Eric Blake  <ebb9@byu.net>
 
+       unlink: fix m4 detection
+       * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
+
        unistd-safer: add unit test
        * modules/unistd-safer-tests: New file.
        * tests/test-dup-safer.c: Likewise.
index bed2466..f89261c 100644 (file)
@@ -1,4 +1,4 @@
-# unlink.m4 serial 2
+# unlink.m4 serial 3
 dnl Copyright (C) 2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_UNLINK],
      fi
      AC_RUN_IFELSE(
        [AC_LANG_PROGRAM(
-         [[#include <stdio.h>
+         [[#include <unistd.h>
            #include <errno.h>
 ]], [[if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
 #if HAVE_LSTAT