summaryrefslogtreecommitdiff
path: root/modules/getdtablesize
diff options
context:
space:
mode:
Diffstat (limited to 'modules/getdtablesize')
-rw-r--r--modules/getdtablesize10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/getdtablesize b/modules/getdtablesize
index f33fcb510e..fa0392400b 100644
--- a/modules/getdtablesize
+++ b/modules/getdtablesize
@@ -12,13 +12,17 @@ msvc-inval [test $HAVE_GETDTABLESIZE = 0]
configure.ac:
gl_FUNC_GETDTABLESIZE
-if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
- AC_LIBOBJ([getdtablesize])
+gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
+ [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
+AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
gl_PREREQ_GETDTABLESIZE
-fi
+])
gl_UNISTD_MODULE_INDICATOR([getdtablesize])
Makefile.am:
+if GL_COND_OBJ_GETDTABLESIZE
+lib_SOURCES += getdtablesize.c
+endif
Include:
<unistd.h>