Browse code

darwin/mac os x fixes: - no sigwaitinfo => use sigwait (in libc) - warning fix

Andrei Pelinescu-Onciul authored on 11/02/2006 10:07:54
Showing 2 changed files
... ...
@@ -1159,7 +1159,8 @@ ifeq ($(OS), darwin)
1159 1159
 	DEFS+=-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN \
1160 1160
 		-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL \
1161 1161
 		-DUSE_ANON_MMAP \
1162
-		-DNDEBUG -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM
1162
+		-DNDEBUG -DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM \
1163
+		-DUSE_SIGWAIT
1163 1164
 	# -DNDEBUG used to turn off assert (assert wants to call
1164 1165
 	# eprintf which doesn't seem to be defined in any shared lib
1165 1166
 	ifneq ($(found_lock_method), yes)
... ...
@@ -128,7 +128,9 @@ int shm_getmem()
128 128
 {
129 129
 
130 130
 #ifdef SHM_MMAP
131
+#ifndef USE_ANON_MMAP
131 132
 	int fd;
133
+#endif
132 134
 #else
133 135
 	struct shmid_ds shm_info;
134 136
 #endif