Original commit message from CVS:
* gst/cothreads.c: Add another fallback if MAP_ANONYMOUS is
missing (#132991)
+2004-01-30 David Schleef <ds@schleef.org>
+
+ * gst/cothreads.c: Add another fallback if MAP_ANONYMOUS is
+ missing (#132991)
+
2004-01-30 Laurent Vivier <Laurent.Vivier@bull.net>
reviewed by Benjamin Otte
#include <ucontext.h>
#endif
-/* older glibc's have MAP_ANON instead of MAP_ANONYMOUS */
#ifndef MAP_ANONYMOUS
+#ifdef MAP_ANON
+/* older glibc's have MAP_ANON instead of MAP_ANONYMOUS */
#define MAP_ANONYMOUS MAP_ANON
+#else
+/* make due without. If this fails, we need to open and map /dev/zero */
+#define MAP_ANONYMOUS 0
+#endif
#endif
#define STACK_SIZE 0x200000