summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-05-27 16:35:42 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-05-27 16:35:42 +0200
commitef1e767ae37d82bf821bda5062989a05917b7211 (patch)
tree8ae561c7742fb76464bee0b9e32371eff85eca00 /include/my_global.h
parent9bc4c4183df327140b5f477993f10f08282d977f (diff)
downloadmariadb-git-ef1e767ae37d82bf821bda5062989a05917b7211.tar.gz
MDEV-4553 - Fixes for compilation under NetBSD.
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index fcfc052d191..981425dc1b1 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1436,6 +1436,7 @@ static inline char *dlerror(void)
#endif
/* Provide __func__ macro definition for platforms that miss it. */
+#if !defined (__func__)
#if __STDC_VERSION__ < 199901L
# if __GNUC__ >= 2
# define __func__ __FUNCTION__
@@ -1453,6 +1454,7 @@ static inline char *dlerror(void)
#else
# define __func__ "<unknown>"
#endif
+#endif /* !defined(__func__) */
#ifndef HAVE_RINT
/**