X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Frmdir-errno.m4;h=7693bc70b46b066b69c373d4e3294cfc201bba1f;hb=e52fa80b73cf84d7e5472aeb43ead4e25dbd5989;hp=2907e7b34afd943a3f4cd732d772c69396aeae53;hpb=865e7d6ee26f7b04d116928ca758f9b1342fe07e;p=gnulib.git diff --git a/m4/rmdir-errno.m4 b/m4/rmdir-errno.m4 index 2907e7b34..7693bc70b 100644 --- a/m4/rmdir-errno.m4 +++ b/m4/rmdir-errno.m4 @@ -1,4 +1,4 @@ -#serial 7 +#serial 8 # Copyright (C) 2000, 2001, 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -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;