2 portability fixes: Added tests for i386 on BSDs and added a check for sched_setscheduler.

This commit is contained in:
gfk
2002-08-27 02:03:33 +00:00
parent 6da4b44139
commit 0ffc198db1
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -87,11 +87,16 @@ AC_CHECK_HEADERS(sched.h sys/sched.h machine/cpufunc.h sys/types.h machine/pio.h
ETR_SYSV_IPC
ETR_UNION_SEMUN
dnl sched_setscheduler on OpenBSD
AC_CHECK_FUNCS(sched_setscheduler)
dnl i386_get_ioperm on NetBSD&OpenBSD
AC_CHECK_LIB(i386, i386_get_ioperm)
AC_CHECK_LIB(i386, i386_get_ioperm,
AC_DEFINE([HAVE_I386_IOPERM_NETBSD],[1],
[Define if you have the NetBSD&OpenBSD version of i386_ioperm functions.]),[
dnl i386_get_ioperm on FreeBSD
AC_CHECK_LIB(c, i386_get_ioperm)
AC_CHECK_LIB(c, i386_get_ioperm,
AC_DEFINE([HAVE_I386_IOPERM_FREEBSD],[1],
[Define if you have the FreeBSD version of the i386_ioperm functions.]),
+1 -1
View File
@@ -42,7 +42,7 @@
// Autoselect... Does this always work well ?
#ifdef DELAY_AUTOSELECT
# ifdef HAVE_SCHED_H
# if defined HAVE_SCHED_H && defined HAVE_SCHED_SETSCHEDULER
# define DELAY_NANOSLEEP
# else
# define DELAY_GETTIMEOFDAY