X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Frmdir-errno.m4;h=7693bc70b46b066b69c373d4e3294cfc201bba1f;hb=ce401f14c2ef12dc46725ffd6f076b75c6ec72a0;hp=c6b582947f0d51e50dff50e628015d0bdb2dd6aa;hpb=f2b62ff7e6360f418df082926030ff4dc77c5ca3;p=gnulib.git diff --git a/m4/rmdir-errno.m4 b/m4/rmdir-errno.m4 index c6b582947..7693bc70b 100644 --- a/m4/rmdir-errno.m4 +++ b/m4/rmdir-errno.m4 @@ -1,4 +1,4 @@ -#serial 6 +#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,8 +22,8 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY], AC_TRY_RUN([ #include #include -#ifndef errno -extern int errno; +#ifdef HAVE_UNISTD_H +# include #endif int main () {