diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fe4e8a5a..ec194ddd 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,10 @@ AS_VAR_APPEND([WARN_CXXFLAGS], " -Werror") AC_LANG_POP([C++]) AC_SUBST([WARN_CXXFLAGS]) +dnl Test support for O_CLOEXEC +AX_CHECK_DEFINE([fcntl.h], [O_CLOEXEC], [], + [AC_DEFINE([O_CLOEXEC], [0], [Fallback definition for old systems])]) + # Only build Linux client libs when compiling for Linux case $host in *-*-linux* | *-android* ) |