summaryrefslogtreecommitdiff
path: root/nptl/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/forward.c')
-rw-r--r--nptl/forward.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nptl/forward.c b/nptl/forward.c
index 67e14028aa..304df8146e 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -194,7 +194,10 @@ FORWARD (pthread_mutex_lock, (pthread_mutex_t *mutex), (mutex), 0)
FORWARD (pthread_mutex_unlock, (pthread_mutex_t *mutex), (mutex), 0)
-FORWARD2 (pthread_self, pthread_t, (void), (), return 0)
+#ifndef FIRST_THREAD_TID
+# define FIRST_THREAD_TID
+#endif
+FORWARD2 (pthread_self, pthread_t, (void), (), return FIRST_THREAD_TID)
FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, oldstate),