diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-12-10 15:11:57 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-12-10 15:11:57 +0000 |
commit | a9400af5cb680b180a1e43388f9264fd94fab161 (patch) | |
tree | 3967a757067e8430e17bc6166c769e51b11b316d | |
parent | a74c9dc3c47d4c9d2d4ae6af6249b591c1008e57 (diff) | |
download | gstreamer-a9400af5cb680b180a1e43388f9264fd94fab161.tar.gz |
a make context fix
Original commit message from CVS:
a make context fix
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | gst/cothreads.c | 2 | ||||
-rw-r--r-- | 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 |