summaryrefslogtreecommitdiff
path: root/net/bird
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-06-29 12:37:45 +0000
committerjoerg <joerg@pkgsrc.org>2012-06-29 12:37:45 +0000
commit8922b9c234da2e9ca26390e19ab47ed9655eade8 (patch)
treee15d959823355a94e3be59611a3113916a59744b /net/bird
parent6b623b3222d890e09ee1ca7161eedffc8eb97d44 (diff)
downloadpkgsrc-8922b9c234da2e9ca26390e19ab47ed9655eade8.tar.gz
Fix inline usage.
Diffstat (limited to 'net/bird')
-rw-r--r--net/bird/distinfo3
-rw-r--r--net/bird/patches/patch-lib_lists.h31
2 files changed, 33 insertions, 1 deletions
diff --git a/net/bird/distinfo b/net/bird/distinfo
index 6d218aba2c4..34b54e68d4d 100644
--- a/net/bird/distinfo
+++ b/net/bird/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2012/01/22 02:53:01 agc Exp $
+$NetBSD: distinfo,v 1.2 2012/06/29 12:37:45 joerg Exp $
SHA1 (bird-1.3.6.tar.gz) = 8fdc7afb99b5896e3dec85b8b3ba194c8287bf32
RMD160 (bird-1.3.6.tar.gz) = d4670d79509fc3975ff86d0b67d60bb507bbbcc6
Size (bird-1.3.6.tar.gz) = 864775 bytes
+SHA1 (patch-lib_lists.h) = 7068c6b73841e19a540a08e822658b0455c53a77
SHA1 (patch-tools_Makefile.in) = b6faf3bc1c866bfc311d74235a92cf3b1f34636f
diff --git a/net/bird/patches/patch-lib_lists.h b/net/bird/patches/patch-lib_lists.h
new file mode 100644
index 00000000000..c95cd1ac5ec
--- /dev/null
+++ b/net/bird/patches/patch-lib_lists.h
@@ -0,0 +1,31 @@
+$NetBSD: patch-lib_lists.h,v 1.1 2012/06/29 12:37:45 joerg Exp $
+
+--- lib/lists.h.orig 2012-06-25 12:34:50.000000000 +0000
++++ lib/lists.h
+@@ -47,19 +47,19 @@ typedef struct list { /* In fact two o
+
+ #define EMPTY_LIST(list) (!(list).head->next)
+
++#ifndef _BIRD_LISTS_C_
++#define LIST_INLINE static inline
++#include "lib/lists.c"
++#undef LIST_INLINE
++#else
++#define LIST_INLINE
++
+ void add_tail(list *, node *);
+ void add_head(list *, node *);
+ void rem_node(node *);
+ void add_tail_list(list *, list *);
+ void init_list(list *);
+ void insert_node(node *, node *);
+-
+-#ifndef _BIRD_LISTS_C_
+-#define LIST_INLINE extern inline
+-#include "lib/lists.c"
+-#undef LIST_INLINE
+-#else
+-#define LIST_INLINE
+ #endif
+
+ #endif