summaryrefslogtreecommitdiff
path: root/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h
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-openbsd-compat_openbsd-compat.h
parent- FIx client-hook to be workable (diff)
Simplify Makefile. No change of the resultant package.
Diffstat (limited to 'net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h')
-rw-r--r--net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h b/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h
new file mode 100644
index 000000000000..01a61866c27e
--- /dev/null
+++ b/net/openbgpd/files/patch-openbsd-compat_openbsd-compat.h
@@ -0,0 +1,30 @@
+Index: openbsd-compat/openbsd-compat.h
+===================================================================
+RCS file: openbsd-compat/openbsd-compat.h
+diff -N openbsd-compat/openbsd-compat.h
+--- /dev/null 1 Jan 1970 00:00:00 -0000
++++ openbsd-compat/openbsd-compat.h 30 Jun 2009 06:52:12 -0000 1.2
+@@ -0,0 +1,23 @@
++/*
++ * $hrs: openbgpd/openbsd-compat/openbsd-compat.h,v 1.2 2009/06/30 06:52:12 hrs Exp $
++ */
++
++#ifndef _OPENBSD_COMPAT_H
++#define _OPENBSD_COMPAT_H
++
++#define __dead
++
++/* bgpctl/bgpctl.c */
++#include <sys/endian.h>
++#define betoh64(x) (be64toh(x))
++
++/* bgpd/irrfilter.c */
++typedef unsigned long ulong;
++
++/* bgpd/bgpd.c */
++#ifndef RTLABEL_LEN /* defined in net/pfvar.h */
++#define RTLABEL_LEN 32
++#endif
++#define RTA_LABEL 0
++
++#endif /* _OPENBSD_COMPAT_H */