forced X/Open mode on HPUX removed. The correct way (that affects not only C but also C++ and linking) would be
CFLAGS="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE" CXXFLAGS="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE" LDFLAGS="-lxnet" but apparently MySQL works without too.
This commit is contained in:
parent
8542743833
commit
141d43ef95
@ -120,26 +120,6 @@
|
|||||||
#define __STDC_EXT__ 1 /* To get large file support on hpux */
|
#define __STDC_EXT__ 1 /* To get large file support on hpux */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HPUX11
|
|
||||||
/*
|
|
||||||
Fix warnings on HPUX11
|
|
||||||
There is something really strange with HPUX11 include files as you get
|
|
||||||
error about wrongly declared symbols or missing defines if you don't
|
|
||||||
do the following:
|
|
||||||
*/
|
|
||||||
#if !defined(_XOPEN_SOURCE_EXTENDED) && ! defined(__cplusplus)
|
|
||||||
#define _XOPEN_SOURCE_EXTENDED 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Fix type of socklen as this is depending on the above define */
|
|
||||||
#undef SOCKET_SIZE_TYPE
|
|
||||||
#ifdef _XOPEN_SOURCE_EXTENDED
|
|
||||||
#define SOCKET_SIZE_TYPE socklen_t
|
|
||||||
#else
|
|
||||||
#define SOCKET_SIZE_TYPE int
|
|
||||||
#endif /* _XOPEN_SOURCE_EXTENDED */
|
|
||||||
#endif /* HPUX11 */
|
|
||||||
|
|
||||||
#if defined(THREAD) && !defined(__WIN__) && !defined(OS2)
|
#if defined(THREAD) && !defined(__WIN__) && !defined(OS2)
|
||||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
#define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */
|
#define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user