Applied patch [ 1088717 ] (_LARGEFILE_SOURCE fix for HP-UX).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-12-22 19:47:31 +00:00
parent cbc9c06fe5
commit 026d8152a6

View File

@@ -1790,7 +1790,6 @@ fi
dnl check for large file support dnl check for large file support
AC_SYS_LARGEFILE AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
dnl we need to define _FILE_OFFSET_BITS or _LARGE_FILES on the compiler command dnl we need to define _FILE_OFFSET_BITS or _LARGE_FILES on the compiler command
dnl line because otherwise the system headers risk being included before dnl line because otherwise the system headers risk being included before
@@ -1803,6 +1802,11 @@ if test "x$wx_largefile" = "xyes"; then
else else
WX_LARGEFILE_FLAGS="-D_LARGE_FILES" WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
fi fi
dnl AC_FUNC_FSEEKO sets HAVE_FSEEKO and $ac_cv_sys_largefile_source
AC_FUNC_FSEEKO
if test "$ac_cv_sys_largefile_source" != no; then
WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
fi
CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
fi fi