summaryrefslogtreecommitdiff
path: root/sql/stacktrace.c
diff options
context:
space:
mode:
authorjoerg@mysql.com <>2005-04-20 20:38:57 +0200
committerjoerg@mysql.com <>2005-04-20 20:38:57 +0200
commiteaa79cb45234f4a675919cb4565adac45601e971 (patch)
treeb82b278a25646c3778f5067f40248a6aa21d3700 /sql/stacktrace.c
parent48ba5e495666fd5db051c1a1aa9d4d61a85f07c0 (diff)
downloadmariadb-git-eaa79cb45234f4a675919cb4565adac45601e971.tar.gz
Step 2 of the switch to support configuration with NPTL:
Define a new CPP symbol that the target OS is Linux, and use it where only the OS matters and not the threads Library. Until now, 'HAVE_LINUXTHREADS' was used to indicate "Target is Linux" in many places. When we support configuration with NPTL but no Linuxthreads, this misuse must cease.
Diffstat (limited to 'sql/stacktrace.c')
-rw-r--r--sql/stacktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/stacktrace.c b/sql/stacktrace.c
index 322d647e741..838f547dc02 100644
--- a/sql/stacktrace.c
+++ b/sql/stacktrace.c
@@ -43,7 +43,7 @@ void safe_print_str(const char* name, const char* val, int max_len)
fputc('\n', stderr);
}
-#ifdef HAVE_LINUXTHREADS
+#ifdef TARGET_OS_LINUX
#define SIGRETURN_FRAME_COUNT 2
#if defined(__alpha__) && defined(__GNUC__)
@@ -201,7 +201,7 @@ end:
stack trace is much more helpful in diagnosing the problem, so please do \n\
resolve it\n");
}
-#endif /* HAVE_LINUXTHREADS */
+#endif /* TARGET_OS_LINUX */
#endif /* HAVE_STACKTRACE */
/* Produce a core for the thread */