summaryrefslogtreecommitdiff
blob: f9e3aba771419137bda360f5033ec6219ec15660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
OK, FreeBSD sh does not define get_alias_text and until it does we need
to NOT define the __weak_reference for it here.
According to bug #157407 this will break heimdal and thunderbird.
Tough, as our /bin/sh is more important at this time.

Index: work/netbsd-cvs/sys.h
===================================================================
--- work.orig/netbsd-cvs/sys.h
+++ work/netbsd-cvs/sys.h
@@ -44,6 +44,11 @@
 #include <sys/cdefs.h>
 #endif
 
+#ifdef __FreeBSD__
+# undef __weak_reference
+/* # define __weak_reference(x) __attribute__((__weakref__)) */
+#endif
+
 #if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__)  || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
 # define __attribute__(A)
 #endif