From f4b715441e114522231028fd96fe2333af2e0dac Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 1 May 1999 10:24:40 +0000 Subject: Fix complilation warning caused by missing prototype for init hook. Patch supplied by Michael Graff in PR pkg/7495. --- devel/ptl2/patches/patch-ab | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 devel/ptl2/patches/patch-ab (limited to 'devel') 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__*/ -- cgit v1.2.3