aboutsummaryrefslogtreecommitdiffstats
path: root/extension/gawkdirfd.h
diff options
context:
space:
mode:
Diffstat (limited to 'extension/gawkdirfd.h')
-rw-r--r--extension/gawkdirfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/gawkdirfd.h b/extension/gawkdirfd.h
index 249a0641..1fbd6f57 100644
--- a/extension/gawkdirfd.h
+++ b/extension/gawkdirfd.h
@@ -21,7 +21,7 @@
#include <config.h>
-#if !defined(HAVE_DIRFD) && !defined(HAVE_DECL_DIRFD)
+#if !defined(HAVE_DIRFD) && (!defined(HAVE_DECL_DIRFD) || HAVE_DECL_DIRFD == 0)
int
dirfd (DIR *dir_p)
{