test for fifth getsockopt() argument type using C++ compiler, not C one (blind fix for HP-UX buildbot failure)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-01 13:15:22 +00:00
parent bb6fc02ac1
commit 7cc81fb81e
2 changed files with 21 additions and 7 deletions

View File

@@ -6615,6 +6615,7 @@ if test "$wxUSE_SOCKETS" = "yes" ; then
AC_CACHE_CHECK([what is the type of the fifth argument of getsockopt],
wx_cv_type_getsockopt5,
[
AC_LANG_PUSH(C++)
AC_TRY_COMPILE(
[
#include <sys/types.h>
@@ -6658,6 +6659,7 @@ if test "$wxUSE_SOCKETS" = "yes" ; then
AC_LANG_POP()
]
)
AC_LANG_POP()
])
if test "$wx_cv_type_getsockopt5" = "unknown"; then