diff options
| author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-10 10:27:23 +0100 |
|---|---|---|
| committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-10 10:27:23 +0100 |
| commit | e588ddb5d683a9fd5cf595ac5ed2d8ba657a6bcf (patch) | |
| tree | 4317ae5567d3b72104aedd4e8ca2f508af205523 /configure.ac | |
| parent | f3ec8693e36f7a562f6ddd87acfebf2340cad2ab (diff) | |
| download | rtmux-e588ddb5d683a9fd5cf595ac5ed2d8ba657a6bcf.tar.gz rtmux-e588ddb5d683a9fd5cf595ac5ed2d8ba657a6bcf.tar.bz2 rtmux-e588ddb5d683a9fd5cf595ac5ed2d8ba657a6bcf.zip | |
Add openat() to compat.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 68c50fba..ceb37db8 100644 --- a/configure.ac +++ b/configure.ac @@ -323,6 +323,13 @@ if test "x$found_cfmakeraw" = xyes; then fi AM_CONDITIONAL(NO_CFMAKERAW, [test "x$found_cfmakeraw" = xno]) +# Look for openat, compat/openat.c used if missing. +AC_CHECK_FUNC(openat, found_openat=yes, found_openat=no) +if test "x$found_openat" = xyes; then + AC_DEFINE(HAVE_OPENAT) +fi +AM_CONDITIONAL(NO_OPENAT, [test "x$found_openat" = xno]) + # Look for getopt. glibc's getopt does not enforce argument order and the ways # of making it do so are stupid, so just use our own instead. AC_CHECK_FUNC(getopt, found_getopt=yes, found_getopt=no) |