From a9400af5cb680b180a1e43388f9264fd94fab161 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 10 Dec 2002 15:11:57 +0000 Subject: [PATCH] a make context fix Original commit message from CVS: a make context fix --- configure.ac | 5 ++++- gst/cothreads.c | 2 +- gst/gstarch.h | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a99e90966f..a6762cacf5 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_CANONICAL_TARGET([]) dnl when going to/from release please set the nano (fourth number) right ! dnl releases only do Wall, cvs and prerelease does Werror too -AS_VERSION(gstreamer, GST_VERSION, 0, 4, 2, 2, GST_ERROR="-Wall", GST_ERROR="-Wall -Werror") +AS_VERSION(gstreamer, GST_VERSION, 0, 4, 2, 3, GST_ERROR="-Wall", GST_ERROR="-Wall -Werror") dnl AM_MAINTAINER_MODE only provides the option to configure to enable it AM_MAINTAINER_MODE AM_INIT_AUTOMAKE($PACKAGE,$VERSION) @@ -105,6 +105,9 @@ AC_MSG_RESULT(no) AC_MSG_RESULT(no) ]) +dnl check for makecontext and define HAVE_MAKECONTEXT if we have it +GST_CHECK_MAKECONTEXT() + dnl Check for essential libraries first: dnl ==================================== diff --git a/gst/cothreads.c b/gst/cothreads.c index 5e4e6eb040..fe559f63cb 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -645,7 +645,7 @@ cothread_switch (cothread_state * thread) longjmp (thread->jmp, 1); } else { -#ifdef HAVE_MAKECONTEXT +#ifdef USE_MAKECONTEXT ucontext_t ucp; GST_DEBUG (GST_CAT_COTHREADS, "making context"); diff --git a/gst/gstarch.h b/gst/gstarch.h index cd21633863..7f16c8b609 100644 --- a/gst/gstarch.h +++ b/gst/gstarch.h @@ -183,6 +183,7 @@ struct minimal_s390_stackframe { #elif defined(HAVE_MAKECONTEXT) /* If we have makecontext(), we'll be using that. */ +#define USE_MAKECONTEXT 1 #else #error Need to know about this architecture, or have a generic implementation