summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-12-19 17:00:53 +0100
committerunknown <kent@mysql.com>2005-12-19 17:00:53 +0100
commita62aaaef7a3c151409b652d71b46809c25011801 (patch)
tree54f11ce215239bb76d3e1fbbbf56073af6574ddc /include/my_global.h
parentec7a7ac27832c3f4a81d863b03f1ce48b9607e8d (diff)
downloadmariadb-git-a62aaaef7a3c151409b652d71b46809c25011801.tar.gz
my_global.h:
Fix for bug #15841: Change in sql_map.cc and mmap breaks on HP-UX - in order to enable the mmap64() (and others) define _LARGEFILE64_SOURCE in case of _LARGEFILE_SOURCE defined on HPUX. include/my_global.h: Fix for bug #15841: Change in sql_map.cc and mmap breaks on HP-UX - in order to enable the mmap64() (and others) define _LARGEFILE64_SOURCE in case of _LARGEFILE_SOURCE defined on HPUX.
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 76ad59f70cb..6be59e41512 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -415,6 +415,9 @@ C_MODE_END
#include <assert.h>
/* Go around some bugs in different OS and compilers */
+#if defined (HPUX11) && defined(_LARGEFILE_SOURCE)
+#define _LARGEFILE64_SOURCE
+#endif
#if defined(_HPUX_SOURCE) && defined(HAVE_SYS_STREAM_H)
#include <sys/stream.h> /* HPUX 10.20 defines ulong here. UGLY !!! */
#define HAVE_ULONG