aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox-esr/files/patch-bug961816
blob: 322e73f952f6bcd794f7fed1f67865d45ab52119 (plain) (blame)
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
diff --git config/system-headers config/system-headers
index 8803150..ae38d68 100644
--- config/system-headers
+++ config/system-headers
@@ -1158,3 +1158,4 @@ unicode/unum.h
 unicode/ustring.h
 #endif
 libutil.h
+unwind.h
diff --git configure.in configure.in
index f452a5e..a1ebbcc 100644
--- configure.in
+++ configure.in
@@ -7455,7 +7455,10 @@ dnl ========================================================
 dnl = Support for gcc stack unwinding (from gcc 3.3)
 dnl ========================================================
 if test -z "$SKIP_LIBRARY_CHECKS"; then
+    AC_LANG_SAVE
+    AC_LANG_CPLUSPLUS
     MOZ_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace))
+    AC_LANG_RESTORE
 fi
 
 dnl ========================================================
diff --git config/system-headers config/system-headers
index 8803150..ae38d68 100644
--- js/src/config/system-headers
+++ js/src/config/system-headers
@@ -1158,3 +1158,4 @@ unicode/unum.h
 unicode/ustring.h
 #endif
 libutil.h
+unwind.h
diff --git configure.in configure.in
index f452a5e..a1ebbcc 100644
--- js/src/configure.in
+++ js/src/configure.in
@@ -7455,7 +7455,10 @@ dnl ========================================================
 dnl = Support for gcc stack unwinding (from gcc 3.3)
 dnl ========================================================
 if test -z "$SKIP_LIBRARY_CHECKS"; then
+    AC_LANG_SAVE
+    AC_LANG_CPLUSPLUS
     MOZ_CHECK_HEADER(unwind.h, AC_CHECK_FUNCS(_Unwind_Backtrace))
+    AC_LANG_RESTORE
 fi
 
 dnl ========================================================