summaryrefslogtreecommitdiff
path: root/gthread
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2000-11-15 17:48:43 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2000-11-15 17:48:43 +0000
commitb9731eb8616acf48f5a4c73568432872e6c5e08e (patch)
treeb5c97ac7c5ceea018ac033ffa815122d55b17319 /gthread
parent760845b183af7d4651258dc7bb2f52a2d0e9abcf (diff)
downloadglib-b9731eb8616acf48f5a4c73568432872e6c5e08e.tar.gz
Check for the sched.h header and include it on gthread/gthread-posix.c if
2000-11-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Check for the sched.h header and include it on gthread/gthread-posix.c if available. * gthread-posix.c: Include <sched.h> if available. * configure.in: Add -D_POSIX4_DRAFT_SOURCE to GTHREAD_COMPILE_IMPL_DEFINES. Also add -D_POSIX4A_DRAFT10_SOURCE to G_THREAD_CFLAGS. Really deploy GTHREAD_COMPILE_IMPL_DEFINES, when searching for thread libs. Look for sched_* functions in -lrte as well. All of that is necessary on DG/UX. * configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADERS in various places to make it work more reliable, to make it accept macros instead of functions etc. * configure.in: Replace some NULL's for checks with 0 to make it work without stdio.h everywhere. * configure.in, gutils.c: changed the test for getpwuid_r to first test for a posix version and then for a non-posix version. No code change in gutils.c. Again this change deals better with getpwuid_r being a macro and not a function. Most of the above with kind help from Tethys <tet@isengard.europe.dg.com>. This fixes Bug #13403.
Diffstat (limited to 'gthread')
-rw-r--r--gthread/ChangeLog4
-rw-r--r--gthread/gthread-posix.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gthread/ChangeLog b/gthread/ChangeLog
index 6a240ba82..b37e8f800 100644
--- a/gthread/ChangeLog
+++ b/gthread/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthread-posix.c: Include <sched.h> if available.
+
2000-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread-none.c: Add G_MUTEX_SIZE as needed for gthread-impl.c
diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c
index 599418cf5..c7f599208 100644
--- a/gthread/gthread-posix.c
+++ b/gthread/gthread-posix.c
@@ -40,6 +40,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_SCHED_H
+#include <sched.h>
+#endif
#define posix_check_err(err, name) G_STMT_START{ \
int error = (err); \