summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2013-01-27 04:46:02 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2013-02-09 03:00:12 +0100
commitb2baffe8d255890b85d93aee653bed2c18371128 (patch)
tree59fd3cada2ac805f46641e4aaf6ee98edddee0bd /zebra
parentb0baf0740e3d6a01980cef7ea0af0a61c10b1bcd (diff)
build: fix "pragma weak" mixups
Not only was there a minor typo in the "pragma weak" preprocessor checks, but also were the tests not behaving as needed - they only indicated support for the /first/ method of implementing weak aliases, which on Linux is __attribute__ and not #pragma. * m4/ax_sys_weak_alias.m4: set defines for _all_ weak alias methods * zebra/kernel_null.c: fix typo Cc: Doug VanLeuven <roamdad@sonic.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/kernel_null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/kernel_null.c b/zebra/kernel_null.c
index ec994a6b..cdb6e23f 100644
--- a/zebra/kernel_null.c
+++ b/zebra/kernel_null.c
@@ -16,7 +16,7 @@ int kernel_delete_ipv4 (struct prefix *a, struct rib *b) { return 0; }
#endif
int kernel_add_ipv6 (struct prefix *a, struct rib *b) { return 0; }
-#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA_PRAGMA
+#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
#pragma weak kernel_delete_ipv6 = kernel_add_ipv6
#else
int kernel_delete_ipv6 (struct prefix *a, struct rib *b) { return 0; }