X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Frmdir-errno.m4;h=4aca05451248d0664c65d1a6f8fa12d5a762b6b2;hb=68dfc9591e97db34b5ba693da028ff1f356a12b7;hp=2907e7b34afd943a3f4cd732d772c69396aeae53;hpb=865e7d6ee26f7b04d116928ca758f9b1342fe07e;p=gnulib.git diff --git a/m4/rmdir-errno.m4 b/m4/rmdir-errno.m4 index 2907e7b34..4aca05451 100644 --- a/m4/rmdir-errno.m4 +++ b/m4/rmdir-errno.m4 @@ -1,6 +1,6 @@ -#serial 7 +# serial 9 -# Copyright (C) 2000, 2001, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2005, 2006, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -12,6 +12,7 @@ # test runs a test to determine the actual numeric value. AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY], [dnl + AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CACHE_CHECK([for rmdir-not-empty errno value], gl_cv_func_rmdir_errno_not_empty, [ @@ -21,6 +22,9 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY], AC_TRY_RUN([ #include #include +#ifdef HAVE_UNISTD_H +# include +#endif int main () { FILE *s;