summaryrefslogtreecommitdiff
path: root/net/openbgpd/files/patch-bgpd_rde_attr.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2009-06-30 07:35:13 +0000
committerHiroki Sato <hrs@FreeBSD.org>2009-06-30 07:35:13 +0000
commit7f31ff4f937cb0e17224ee7d8e11dd7d2a690462 (patch)
tree669ea07e99a7f19513f560292a84a25a34c55626 /net/openbgpd/files/patch-bgpd_rde_attr.c
parent- FIx client-hook to be workable (diff)
Simplify Makefile. No change of the resultant package.
Diffstat (limited to 'net/openbgpd/files/patch-bgpd_rde_attr.c')
-rw-r--r--net/openbgpd/files/patch-bgpd_rde_attr.c32
1 files changed, 21 insertions, 11 deletions
diff --git a/net/openbgpd/files/patch-bgpd_rde_attr.c b/net/openbgpd/files/patch-bgpd_rde_attr.c
index cc1b62d1a386..db5f385ca624 100644
--- a/net/openbgpd/files/patch-bgpd_rde_attr.c
+++ b/net/openbgpd/files/patch-bgpd_rde_attr.c
@@ -1,20 +1,30 @@
---- bgpd/rde_attr.c 2007-05-22 16:03:31.000000000 +0200
-+++ bgpd/rde_attr.c 2008-03-18 15:30:31.000000000 +0100
-@@ -17,7 +17,6 @@
+Index: bgpd/rde_attr.c
+===================================================================
+RCS file: /home/cvs/private/hrs/openbgpd/bgpd/rde_attr.c,v
+retrieving revision 1.1.1.1
+retrieving revision 1.2
+diff -u -p -r1.1.1.1 -r1.2
+--- bgpd/rde_attr.c 30 Jun 2009 05:46:15 -0000 1.1.1.1
++++ bgpd/rde_attr.c 30 Jun 2009 06:40:07 -0000 1.2
+@@ -17,7 +17,11 @@
*/
#include <sys/types.h>
--#include <sys/hash.h>
++#if defined(__FreeBSD__) /* sys/hash.h */
++#include "hash.h"
++#else
+ #include <sys/hash.h>
++#endif /* defined(__FreeBSD__) */
#include <sys/queue.h>
#include <netinet/in.h>
-@@ -28,6 +27,9 @@
+@@ -25,6 +29,9 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#if defined(__FreeBSD__) /* limits.h */
++#include <limits.h>
++#endif /* defined(__FreeBSD__) */
#include "bgpd.h"
#include "rde.h"
-+#include "hash.h"
-+
-+#include <limits.h>
-
- int
- attr_write(void *p, u_int16_t p_len, u_int8_t flags, u_int8_t type,