Browse Source

- darwin: if no locking method found revert to sys v sems (neither pthread
mutexes or unnamed posix sems work in darwin for inter process synchronization)

Andrei Pelinescu-Onciul 18 years ago
parent
commit
e507677070
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Makefile.defs

+ 4 - 3
Makefile.defs

@@ -1461,10 +1461,11 @@ ifeq ($(OS), darwin)
 	ifneq ($(found_lock_method), yes)
 		DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
 		found_lock_method=yes
-		LIBS= -pthread -lresolv  #dlopen is in libc
-	else
-		LIBS= -lresolv  #dlopen is in libc
+		DEFS+= -DUSE_SYSV_SEM  # try sys v sems (pthread don't work for
+		                       # processes and unnamed posix sems are not
+		                       # supported)
 	endif
+	LIBS= -lresolv  #dlopen is in libc
 	ifeq ($(NO_KQUEUE),)
 		DEFS+=-DHAVE_KQUEUE
 	endif