summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-12-16 03:10:13 +0200
committerunknown <monty@donna.mysql.com>2000-12-16 03:10:13 +0200
commit9977a8368e8c82b35bed2ed2cde1d29f3ce147c1 (patch)
treecd8cee3cd8f4e582c67eb22447eba931568bba00
parent26c37b5e64e760e8459d3e5de6c5f5e04a26ed0a (diff)
downloadmariadb-git-9977a8368e8c82b35bed2ed2cde1d29f3ce147c1.tar.gz
Fix problem with S_ISLNK() on Linux
-rw-r--r--include/global.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/global.h b/include/global.h
index 5975db9e2a6..f012d2744fd 100644
--- a/include/global.h
+++ b/include/global.h
@@ -39,6 +39,11 @@
#endif
#endif /* _cplusplus */
+/* Fix problem with S_ISLNK() on Linux */
+#if defined(HAVE_LINUXTHREADS)
+#define _GNU_SOURCE 1
+#endif
+
/* The client defines this to avoid all thread code */
#if defined(UNDEF_THREADS_HACK)
#undef THREAD
@@ -56,9 +61,6 @@
#ifndef __STDC_EXT__
#define __STDC_EXT__ 1 /* To get large file support on hpux */
#endif
-#if defined(HAVE_LINUXTHREADS)
-#define _GNU_SOURCE 1
-#endif
#if defined(THREAD) && !defined(__WIN__)
#ifndef _POSIX_PTHREAD_SEMANTICS