From 3adb2f7f2ca31a310813157c99d8408f8d2a19fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Mon, 28 Aug 2000 18:10:25 -0700
Subject: [PATCH] use sys/sched.h if it exists [bug 115]

Rev: src/configure.in:1.411
Rev: src/signal_handler.c:1.179
---
 src/configure.in     |  4 ++--
 src/signal_handler.c | 10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index 41c3fe4e9b..f8ca3bed70 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.410 2000/08/28 21:19:14 grubba Exp $")
+AC_REVISION("$Id: configure.in,v 1.411 2000/08/29 01:10:25 hubbe Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -1341,7 +1341,7 @@ limits.h pthread.h crt/signal.h sys/id.h \
 thread.h dlfcn.h dld.h dl.h sys/times.h sched.h sys/procfs.h sys/param.h \
 winsock.h sys/ioct.h sys/socket.h malloc.h netinet/in.h sys/wait.h winbase.h \
 grp.h pwd.h passwd.h group.h winsock2.h signal.h sys/file.h poll.h sys/poll.h \
-socket.h ieeefp.h fp_class.h floatingpoint.h  sys/priocntl.h sched.h \
+socket.h ieeefp.h fp_class.h floatingpoint.h  sys/priocntl.h sys/sched.h \
 windows.h errno.h stddef.h mmx.h)
 
 AC_CHECK_SIZEOF(char *,4)
diff --git a/src/signal_handler.c b/src/signal_handler.c
index d229c7b642..c82f9b0307 100644
--- a/src/signal_handler.c
+++ b/src/signal_handler.c
@@ -25,7 +25,7 @@
 #include "main.h"
 #include <signal.h>
 
-RCSID("$Id: signal_handler.c,v 1.178 2000/08/19 11:35:51 grubba Exp $");
+RCSID("$Id: signal_handler.c,v 1.179 2000/08/29 01:10:25 hubbe Exp $");
 
 #ifdef HAVE_PASSWD_H
 # include <passwd.h>
@@ -1465,7 +1465,13 @@ extern int pike_make_pipe(int *);
 # include <sys/tspriocntl.h>
 #else
 # ifdef HAVE_SCHED_SETSCHEDULER
-#  include <sched.h>
+#  ifdef HAVE_SCHED_H
+#    include <sched.h>
+#  else
+#   ifdef HAVE_SYS_SCHED_H
+#    include <sys/sched.h>
+#   endif
+#  endif
 # endif
 #endif
 
-- 
GitLab