diff options
Diffstat (limited to 'graphics/clanlib/patches/patch-af')
-rw-r--r-- | graphics/clanlib/patches/patch-af | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/graphics/clanlib/patches/patch-af b/graphics/clanlib/patches/patch-af index 79b9c39d291..741f662550b 100644 --- a/graphics/clanlib/patches/patch-af +++ b/graphics/clanlib/patches/patch-af @@ -1,23 +1,16 @@ -$NetBSD: patch-af,v 1.1.1.1 1999/07/21 22:56:35 garbled Exp $ ---- Layer1/System/Unix/init_linux.cpp.orig Thu Jun 3 -19:58:39 1999 -+++ Layer1/System/Unix/init_linux.cpp Tue Jul 20 08:34:23 1999 -@@ -193,7 +193,7 @@ - - if (dynload_add_network == NULL) - { -- cout << "Unable to load any sound implementation. Sorry." << endl; -+ cout << "Unable to load any network implementation. Sorry." << endl; - exit(1); - } - -@@ -275,7 +275,9 @@ - // init signal handling - act.sa_handler = signal_handler; - act.sa_flags = 0; -+#ifndef __NetBSD__ - act.sa_restorer = NULL; +$NetBSD: patch-af,v 1.2 1999/11/30 13:24:47 rh Exp $ + +--- Layer1/System/Unix/mutex_pthread.cpp.orig Sun Aug 15 00:53:30 1999 ++++ Layer1/System/Unix/mutex_pthread.cpp Mon Nov 29 18:30:10 1999 +@@ -31,7 +31,11 @@ + { + pthread_mutexattr_t attr; + pthread_mutexattr_init(&attr); ++#ifdef PTHREAD_MUTEX_RECURSIVE_NP + pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); ++#else ++ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); +#endif - sigemptyset(&act.sa_mask); - sigaction(SIGTERM,&act,&old); // terminated, by kill - sigaction(SIGINT,&act,&old); // interrupt, ctrl-c + pthread_mutex_init(&mutex, &attr); + pthread_mutexattr_destroy(&attr); + } |