Browse code

- seems that openbsd supports kqueue since 2.9 or earlier (found kqueue references in 2.9's changelog)

Andrei Pelinescu-Onciul authored on 26/06/2005 20:48:23
Showing 2 changed files
... ...
@@ -1001,8 +1001,8 @@ ifeq ($(OS), openbsd)
1001 1001
 		DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
1002 1002
 		found_lock_method=yes
1003 1003
 	endif
1004
-	# check for ver >= 3.7
1005
-	ifeq ($(shell [ $(OSREL_N) -ge 3007 ] && echo has_kqueue), has_kqueue)
1004
+	# check for ver >=2 9
1005
+	ifeq ($(shell [ $(OSREL_N) -ge 2009 ] && echo has_kqueue), has_kqueue)
1006 1006
 		ifeq ($(NO_KQUEUE),)
1007 1007
 			DEFS+=-DHAVE_KQUEUE
1008 1008
 		endif
... ...
@@ -342,8 +342,8 @@ char* check_poll_method(enum poll_types poll_method)
342 342
 			if (os_ver<0x020000) /* if ver < 2.0 */
343 343
 				ret="kqueue not supported on NetBSD < 2.0";
344 344
 	#elif defined (__OS_openbsd)
345
-			if (os_ver<0x0307) /* if ver < 3.7 ??? */
346
-				ret="kqueue not supported on OpenBSD < 3.7 (?)";
345
+			if (os_ver<0x0209) /* if ver < 2.9 ? */
346
+				ret="kqueue not supported on OpenBSD < 2.9 (?)";
347 347
 	#endif /* assume that the rest support kqueue ifdef HAVE_KQUEUE */
348 348
 #endif
349 349
 			break;	
... ...
@@ -376,7 +376,7 @@ enum poll_types choose_poll_method()
376 376
 	#elif defined (__OS_netbsd)
377 377
 		if (os_ver>=0x020000) /* if ver >= 2.0 */
378 378
 	#elif defined (__OS_openbsd)
379
-		if (os_ver>=0x0307) /* if ver >= 3.7 */
379
+		if (os_ver>=0x0209) /* if ver >= 2.9 (?) */
380 380
 	#endif /* assume that the rest support kqueue ifdef HAVE_KQUEUE */
381 381
 			poll_method=POLL_KQUEUE;
382 382
 #endif