summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 15495c60dd7..86fb2a5ee4d 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -110,6 +110,26 @@
#define __STDC_EXT__ 1 /* To get large file support on hpux */
#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)
#ifndef _POSIX_PTHREAD_SEMANTICS
#define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */
@@ -703,6 +723,15 @@ typedef long longlong;
#endif
#endif
+#if defined(NO_CLIENT_LONG_LONG)
+typedef unsigned long my_ulonglong;
+#elif defined (__WIN__)
+typedef unsigned __int64 my_ulonglong;
+#else
+typedef unsigned long long my_ulonglong;
+#endif
+
+
#ifdef USE_RAID
/*
The following is done with a if to not get problems with pre-processors