0b6b95f0c9
There were 3 major revisions inbetween, so I honestly can't tell what changed. (would be good to libtoolize this one day, but for now I've done only minimal changes to the freebsd5 configuration)
23 lines
954 B
Text
23 lines
954 B
Text
$NetBSD: patch-ad,v 1.2 2006/05/27 12:38:27 drochner Exp $
|
|
|
|
--- base/src/TMapFile.cxx.orig 2006-05-26 17:50:02.000000000 +0200
|
|
+++ base/src/TMapFile.cxx
|
|
@@ -104,7 +104,7 @@
|
|
#include <sys/sem.h>
|
|
#if defined(R__HPUX) || (defined (R__ALPHA) && !defined(R__FBSD)) || \
|
|
defined (R__SOLARIS) || defined(R__AIX) || defined(R__HIUX) || \
|
|
- __GLIBC_MINOR__ > 0
|
|
+ __GLIBC_MINOR__ > 0 || defined(__NetBSD__)
|
|
union semun {
|
|
int val; // value for SETVAL
|
|
struct semid_ds *buf; // buffer for IPC_STAT & IPC_SET
|
|
@@ -760,8 +760,7 @@ void TMapFile::CreateSemaphore(int pid)
|
|
#ifdef HAVE_SEMOP
|
|
#ifndef WIN32
|
|
// create semaphore to synchronize access (should use read/write lock)
|
|
- fSemaphore = semget(IPC_PRIVATE, 1, SEM_R|SEM_A|(SEM_R>>3)|(SEM_A>>3)|
|
|
- (SEM_R>>6)|(SEM_A>>6));
|
|
+ fSemaphore = semget(IPC_PRIVATE, 1, 0);
|
|
|
|
// set semaphore to 1
|
|
if (fSemaphore != -1) {
|