Mercurial > hg > octave-shane > gnulib-hg
changeset 12400:eacc6f30863b
unlink: fix m4 detection
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>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 07 Dec 2009 17:15:07 -0700 |
parents | 7b2940180b02 |
children | 4e193de62444 |
files | ChangeLog m4/unlink.m4 |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/m4/unlink.m4 +++ b/m4/unlink.m4 @@ -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 @@ 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