summaryrefslogtreecommitdiff
path: root/devel/ptl2
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-05-01 10:24:40 +0000
committertron <tron@pkgsrc.org>1999-05-01 10:24:40 +0000
commitf4b715441e114522231028fd96fe2333af2e0dac (patch)
tree73ee5e692ee24f85e6035f4a6e5c92f8504968f9 /devel/ptl2
parentcf67e1925a28e99ff3902671e3e73cbcde854e0a (diff)
downloadpkgsrc-f4b715441e114522231028fd96fe2333af2e0dac.tar.gz
Fix complilation warning caused by missing prototype for init hook.
Patch supplied by Michael Graff in PR pkg/7495.
Diffstat (limited to 'devel/ptl2')
-rw-r--r--devel/ptl2/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/ptl2/patches/patch-ab b/devel/ptl2/patches/patch-ab
new file mode 100644
index 00000000000..d254ccf057a
--- /dev/null
+++ b/devel/ptl2/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 1999/05/01 10:24:40 tron Exp $
+
+--- include/sys/pthread-init.h.orig Wed Apr 28 14:30:28 1999
++++ include/sys/pthread-init.h Wed Apr 28 20:49:27 1999
+@@ -15,9 +15,9 @@
+ * Initialize the PTL
+ */
+ # ifdef __GNUC__
+-static void _pthread_inithook() __attribute__((constructor));
+-extern void _pthread_init();
+-static void _pthread_inithook() { _pthread_init(); }
++static void _pthread_inithook(void) __attribute__((constructor));
++extern void _pthread_init(void);
++static void _pthread_inithook(void) { _pthread_init(); }
+ # else
+ # define main __pthread_main
+ # endif /*!__GNUC__*/