summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorJonathan Perkin <jonathan.perkin@oracle.com>2010-05-25 14:27:52 +0100
committerJonathan Perkin <jonathan.perkin@oracle.com>2010-05-25 14:27:52 +0100
commitc42772c7f2d7ec7fb838ec3076afc6620ab24322 (patch)
tree9c5156d342e452efee9323d95c9564c166a45bf9 /include/my_global.h
parent8f8e1d6fb85d4be1e8e44beb22b26a72f76ac84e (diff)
downloadmariadb-git-c42772c7f2d7ec7fb838ec3076afc6620ab24322.tar.gz
bug#49968: Properly define HAVE_ERRNO_AS_DEFINE for the appropriate
OpenBSD releases. Apply patch from Brad Smith, thanks!
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index e4e53aca20a..e284acce186 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -55,6 +55,10 @@
#define USE_PRAGMA_INTERFACE
#endif
+#if defined(__OpenBSD__) && (OpenBSD >= 200411)
+#define HAVE_ERRNO_AS_DEFINE
+#endif
+
#if defined(i386) && !defined(__i386__)
#define __i386__
#endif