From 98254ac2095acbf3bee9cc954703f9da18d94d38 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 27 Aug 2004 13:32:52 +0000 Subject: [PATCH] Change check for setpriority slightly Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1929 --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index c7325bef..c7820e4d 100644 --- a/configure.in +++ b/configure.in @@ -187,14 +187,14 @@ else AC_MSG_WARN([Can't find libSDL_sound, libSDL_sound support disabled]) fi -AH_TEMPLATE(C_PRIORITY_NICE,[Define to 1 if you have nice priority changing support]) -AC_MSG_CHECKING(for nice priority changing) +AH_TEMPLATE(C_SET_PRIORITY,[Define to 1 if you have setpriority support]) +AC_MSG_CHECKING(for setpriority support) AC_LINK_IFELSE([ #include int main(int argc,char * argv[]) { - return nice(10); + return setpriority (PRIO_PROCESS, 0,PRIO_MIN+PRIO_MAX); }; -],AC_MSG_RESULT(yes);AC_DEFINE(C_PRIORITY_NICE,1),AC_MSG_RESULT(no)) +],AC_MSG_RESULT(yes);AC_DEFINE(C_SET_PRIORITY,1),AC_MSG_RESULT(no)) dnl Some host detection and actions for them