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
commitbaa8f0127b251227a7eca57cbdd59c96eece2ee5 (patch)
tree9c5156d342e452efee9323d95c9564c166a45bf9 /include/my_global.h
parent69c9dbabe6cd436ba9a25cbcaca018675c240072 (diff)
downloadmariadb-git-baa8f0127b251227a7eca57cbdd59c96eece2ee5.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