summaryrefslogtreecommitdiff
path: root/net
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
commitefa331270e0db9e1fea26157e9e53c094c012bb0 (patch)
treee15d959823355a94e3be59611a3113916a59744b /net
parentf62aca77f06e1ccb14a3a838cc8fd56909d96ca2 (diff)
downloadpkgsrc-efa331270e0db9e1fea26157e9e53c094c012bb0.tar.gz
Fix inline usage.
Diffstat (limited to 'net')
-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