diff options
Diffstat (limited to 'audio/terminatorx/files/patch-configure.ac')
-rw-r--r-- | audio/terminatorx/files/patch-configure.ac | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/audio/terminatorx/files/patch-configure.ac b/audio/terminatorx/files/patch-configure.ac new file mode 100644 index 000000000000..e46c4869472a --- /dev/null +++ b/audio/terminatorx/files/patch-configure.ac @@ -0,0 +1,36 @@ +--- configure.ac.orig 2018-11-07 18:12:55 UTC ++++ configure.ac +@@ -122,6 +122,33 @@ if test "$tX_threads" = "no"; then + AC_MSG_ERROR([** failed to detect pthreads implementation **]) + fi + ++AC_CHECK_FUNC(scandir, ++ if test "x$uname" = xSunOS -o "x$uname" = xQNX; then ++ AC_MSG_WARN(Not using $uname scandir emulation function.) ++ else ++ AC_DEFINE(HAVE_SCANDIR, 1, [Has scandir]) ++ fi) ++ ++dnl Do we have the POSIX compatible scandir() prototype? ++AC_CACHE_CHECK([whether we have the POSIX compatible scandir() prototype], ++ ac_cv_cxx_scandir_posix,[ ++ AC_LANG_SAVE ++ AC_LANG_CPLUSPLUS ++ AC_TRY_COMPILE([ ++ #include <dirent.h> ++ int func (const char *d, dirent ***list, void *sort) { ++ int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); ++ } ++ ],[ ++ ], ac_cv_cxx_scandir_posix=yes, ac_cv_cxx_scandir_posix=no) ++ AC_LANG_RESTORE ++ ]) ++ ++if test "$ac_cv_cxx_scandir_posix" = yes; then ++ AC_DEFINE(HAVE_SCANDIR_POSIX, 1, [scandir conforms to POSIX]) ++fi ++ ++ + + AC_SEARCH_LIBS([dlclose], [dl]) + |