diff options
Diffstat (limited to 'net/dctc/files/patch-src:sema.c')
-rw-r--r-- | net/dctc/files/patch-src:sema.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/net/dctc/files/patch-src:sema.c b/net/dctc/files/patch-src:sema.c index 681575d0f4ed..9eba7f078b89 100644 --- a/net/dctc/files/patch-src:sema.c +++ b/net/dctc/files/patch-src:sema.c @@ -1,18 +1,17 @@ ---- src/sema.c.orig Sat Nov 24 13:48:16 2001 -+++ src/sema.c Sat Nov 24 14:53:39 2001 -@@ -31,6 +31,11 @@ +--- src/sema.c Sat Nov 24 08:29:56 2001 ++++ src/sema.c Sun Dec 2 19:34:12 2001 +@@ -29,8 +29,10 @@ + #include <limits.h> + #include <pthread.h> ++#include "config.h" #include "sema.h" -+#if (defined(__unix__) || defined(unix)) && !defined(USG) -+#include <sys/param.h> -+#endif -+ +#if !(defined(BSD) && (BSD >= 199103)) #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) /* union semun is defined by including <sys/sem.h> */ #else -@@ -42,6 +47,7 @@ +@@ -42,6 +44,7 @@ struct seminfo *__buf; /* buffer for IPC_INFO */ }; #endif @@ -20,12 +19,3 @@ #ifndef IPC_ALLOC #define IPC_ALLOC 0 -@@ -201,7 +207,7 @@ - - pthread_attr_init (&thread_attr); - pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED); -- if(pthread_create(&thread_id,&thread_attr, (void*)sema_master,(void*)semid)!=0) -+ if(pthread_create(&thread_id,&thread_attr, sema_master,(void*)semid)!=0) - { - /* if the creation of the clock thread fails, release the master sema */ - /* else nobody will try to create a new clock and all xfers will hang */ |