X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgetcwd.m4;h=35d0b53bd3f024066ca12ee9f02e33accdca24e5;hb=95d2aaeab5b8caa01c776d3afa097220cd8982b9;hp=2e854751169baf7929b7a67fa144617fc30b0616;hpb=e74d04a8682cb37afd40f7f7d55580e3e97b48ce;p=gnulib.git diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 index 2e8547511..35d0b53bd 100644 --- a/m4/getcwd.m4 +++ b/m4/getcwd.m4 @@ -11,15 +11,12 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL], [ AC_LIBSOURCES([getcwd.c, getcwd.h]) - AC_CHECK_HEADERS_ONCE(unistd.h) AC_CACHE_CHECK([whether getcwd (NULL, 0) allocates memory for result], [gl_cv_func_getcwd_null], [AC_TRY_RUN( [ # include -# ifdef HAVE_UNISTD_H -# include -# endif +# include # ifndef getcwd char *getcwd (); # endif