blob: 1845b5dc7462db0f62973a23284c5dfd1b1c5128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-lib_internal.h,v 1.2 2022/05/14 16:47:48 jperkin Exp $
no symbol versioning available on SunOS
--- lib/internal.h.orig 2020-05-26 16:11:35.000000000 +0000
+++ lib/internal.h
@@ -18,6 +18,17 @@
#define STATIC_ALIAS(_decl, _for) _decl PCI_ABI { return _for; }
#define DEFINE_ALIAS(_decl, _for)
#define SYMBOL_VERSION(_int, _ext)
+#elif defined(__sun__)
+#define STATIC_ALIAS(_decl, _for)
+#define DEFINE_ALIAS(_decl, _for)
+#define SYMBOL_VERSION(_int, _ext)
+#define pci_fill_info_v35 pci_fill_info
+#define pci_filter_init_v38 pci_filter_init
+#define pci_fill_info_v38 pci_fill_info
+#define pci_init_v35 pci_init
+#define pci_filter_parse_slot_v38 pci_filter_parse_slot
+#define pci_filter_parse_id_v38 pci_filter_parse_id
+#define pci_filter_match_v38 pci_filter_match
#else
#define STATIC_ALIAS(_decl, _for)
#define DEFINE_ALIAS(_decl, _for) extern _decl __attribute__((alias(#_for)))
|