8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

On HPUX problems happen when linking C++ program using posix_fadvice()

This commit is contained in:
alexpeshkoff 2009-04-29 08:05:43 +00:00
parent 17ff6256ac
commit 21834f9957

View File

@ -672,7 +672,7 @@ AC_CHECK_FUNCS(semtimedop)
# HPUX has a bug in .h files. To detect it we need C++ here.
AC_LANG_PUSH(C++)
#AC_CHECK_FUNCS(posix_fadvise)
AC_COMPILE_IFELSE(
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include <fcntl.h>]], [[posix_fadvise(0, 0, 0, 0);]])],
AC_DEFINE(HAVE_POSIX_FADVISE, 1, [Define this if posix_fadvise() is present on the platform]))
AC_LANG_POP(C++)