summaryrefslogtreecommitdiff
path: root/devel/ptl2/patches/patch-ae
blob: c07e0d2a07c13fd6bf8ff1ab8796bcf6788e1def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ae,v 1.1 1999/05/06 20:07:22 tv Exp $

--- src/proto.h.orig	Thu May  6 11:37:33 1999
+++ src/proto.h	Thu May  6 11:38:14 1999
@@ -100,7 +100,11 @@
 extern void _pthread_psigmask_clear_sigmask_if_need __PTL_NOARGS;
 extern void _pthread_psigmask_clear_sigmask_on_csw __PTL_NOARGS;
 /* pthread.c */
-extern void _pthread_init __PTL_NOARGS;
+extern void _pthread_init __PTL_NOARGS
+#ifdef __GNUC__
+__attribute__((constructor))
+#endif
+;
 extern void _pthread_destroy __PTL_P((_pthread_tcb *thread_ptr));
 extern int _pthread_setscheduler __PTL_P((_pthread_tcb *thread_ptr, int policy, const struct sched_param *param));
 /* queue.c */