-
Notifications
You must be signed in to change notification settings - Fork 13
/
nacl-glib-2.28.8.patch
51 lines (48 loc) · 1.95 KB
/
nacl-glib-2.28.8.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff -urN glib-2.28.8/config.sub glib-2.28.8-nacl/config.sub
--- glib-2.28.8/config.sub 2010-03-29 04:21:24.000000000 -0700
+++ glib-2.28.8-nacl/config.sub 2011-09-29 14:40:07.677839000 -0700
@@ -319,6 +319,10 @@
i*86 | x86_64)
basic_machine=$basic_machine-pc
;;
+ nacl*)
+ basic_machine=i686-pc
+ os=-nacl
+ ;;
# Object if more than one company name word.
*-*-*)
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
@@ -1302,7 +1306,7 @@
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -nacl*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
diff -urN glib-2.28.8/gthread/gthread-posix.c glib-2.28.8-nacl/gthread/gthread-posix.c
--- glib-2.28.8/gthread/gthread-posix.c 2010-09-27 11:48:34.000000000 -0700
+++ glib-2.28.8-nacl/gthread/gthread-posix.c 2011-09-29 14:40:17.286005000 -0700
@@ -97,6 +97,7 @@
# error This should not happen. Contact the GLib team.
#endif
+#ifndef __native_client__
#if defined (POSIX_MIN_PRIORITY) && defined (POSIX_MAX_PRIORITY)
# define HAVE_PRIORITIES 1
static gint priority_normal_value;
@@ -114,6 +115,7 @@
# endif /* !__FreeBSD__ */
# define PRIORITY_NORMAL_VALUE priority_normal_value
#endif /* POSIX_MIN_PRIORITY && POSIX_MAX_PRIORITY */
+#endif /* __native_client__ */
static gulong g_thread_min_stack_size = 0;
diff -urN glib-2.28.8/nacl.cache glib-2.28.8-nacl/nacl.cache
--- glib-2.28.8/nacl.cache 1969-12-31 16:00:00.000000000 -0800
+++ glib-2.28.8-nacl/nacl.cache 2011-09-29 14:40:07.680834000 -0700
@@ -0,0 +1,5 @@
+glib_cv_stack_grows=no
+glib_cv_uscore=no
+ac_cv_func_posix_getpwuid_r=yes
+ac_cv_func_posix_getgrgid_r=yes
+