[gdk-pixbuf] tests: define MAP_ANONYMOUS if it's not already
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] tests: define MAP_ANONYMOUS if it's not already
- Date: Sun, 28 Dec 2014 04:36:57 +0000 (UTC)
commit 4122ab204a6934672386e5fa9add122241471641
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Dec 27 21:07:27 2014 -0500
tests: define MAP_ANONYMOUS if it's not already
MAP_ANONYMOUS is not part of POSIX and some other systems (like Mac OS)
call it MAP_ANON.
https://bugzilla.gnome.org/show_bug.cgi?id=741933
tests/pixbuf-readonly-to-mutable.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/pixbuf-readonly-to-mutable.c b/tests/pixbuf-readonly-to-mutable.c
index 456f5a2..c47de7a 100644
--- a/tests/pixbuf-readonly-to-mutable.c
+++ b/tests/pixbuf-readonly-to-mutable.c
@@ -27,6 +27,12 @@
#endif
#ifdef G_OS_UNIX
+
+/* see https://bugzilla.gnome.org/show_bug.cgi?id=741933 */
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
typedef struct {
void *buf;
gsize len;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]