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
52
53
54
55
56
57
|
$NetBSD: patch-as,v 1.3 2013/01/09 10:34:03 martin Exp $
Treat DragonFly like FreeBSD.
Do not allow access to _res on NetBSD.
--- js/src/configure.in.orig 2012-03-06 15:45:30.000000000 +0100
+++ js/src/configure.in 2013-01-08 16:00:11.000000000 +0100
@@ -1653,7 +1653,7 @@
fi
;;
-*-freebsd*)
+*-freebsd*|*-dragonfly*)
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
@@ -2509,7 +2509,7 @@
solaris*)
AC_DEFINE(AVMPLUS_UNIX)
;;
-freebsd*|kfreebsd*)
+freebsd*|kfreebsd*|netbsd*|dragonfly*)
AC_DEFINE(AVMPLUS_UNIX)
;;
*cygwin*|*mingw*|*mks*|*msvc*|*wince)
@@ -2724,6 +2724,9 @@
AC_CACHE_CHECK(for visibility(hidden) attribute,
ac_cv_visibility_hidden,
[cat > conftest.c <<EOF
+#ifdef __clang__
+#error Not supported by old Mozilla
+#endif
int foo __attribute__ ((visibility ("hidden"))) = 1;
EOF
ac_cv_visibility_hidden=no
@@ -3182,7 +3185,11 @@
#endif
#include <resolv.h>
],
- [int foo = res_ninit(&_res);],
+ [
+ #ifdef __NetBSD__
+ #error "_res is not usable in threaded programs"
+ #endif
+ int foo = res_ninit(&_res);],
[ac_cv_func_res_ninit=yes],
[ac_cv_func_res_ninit=no])
])
@@ -4150,7 +4157,7 @@
darwin*)
AC_DEFINE(MOZ_MEMORY_DARWIN)
;;
- *freebsd*)
+ *freebsd*|dragonfly*)
AC_DEFINE(MOZ_MEMORY_BSD)
;;
*linux*)
|