1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Feature: Added checks (currently only used for version display) for posix_fadvise, posix_fallocate, posix_madvise, fallocate, and ftruncate

This commit is contained in:
Philipp Schafft 2024-01-14 17:26:00 +00:00
parent 573c7e51ab
commit d0ebed5470
2 changed files with 17 additions and 0 deletions

View File

@ -126,6 +126,8 @@ AC_CHECK_FUNCS([getrlimit])
dnl Checked only for reporting in version display as of now (may be used in future versions): dnl Checked only for reporting in version display as of now (may be used in future versions):
AC_CHECK_FUNCS([pipe pipe2 socketpair posix_spawn posix_spawnp]) AC_CHECK_FUNCS([pipe pipe2 socketpair posix_spawn posix_spawnp])
AC_CHECK_FUNCS([posix_fadvise posix_fallocate posix_madvise])
AC_CHECK_FUNCS([fallocate ftruncate])
dnl check for crypt(): dnl check for crypt():
AC_SEARCH_LIBS([crypt_r], [crypt], [ AC_SEARCH_LIBS([crypt_r], [crypt], [

View File

@ -88,6 +88,21 @@ const char * const * version_get_compiletime_flags(void)
#endif #endif
#ifdef HAVE_POSIX_SPAWNP #ifdef HAVE_POSIX_SPAWNP
"posix_spawnp", "posix_spawnp",
#endif
#ifdef HAVE_POSIX_FADVISE
"posix_fadvise",
#endif
#ifdef HAVE_POSIX_FALLOCATE
"posix_fallocate",
#endif
#ifdef HAVE_POSIX_MADVISE
"posix_madvise",
#endif
#ifdef HAVE_FALLOCATE
"fallocate",
#endif
#ifdef HAVE_FTRUNCATE
"ftruncate",
#endif #endif
/* ---[ OS ]--- */ /* ---[ OS ]--- */
#ifdef WIN32 #ifdef WIN32