diff options
author | agc <agc> | 2007-05-13 20:59:48 +0000 |
---|---|---|
committer | agc <agc> | 2007-05-13 20:59:48 +0000 |
commit | 487d5f7f1cbe9fb28ec63a9aefe0cd5f696e3f7b (patch) | |
tree | 00f78bd74443ad754f769aa834493f2a51c79bec /net/arla/patches | |
parent | f07a1f8953d14beda2a32f4f8efc32943e4e8e5f (diff) | |
download | pkgsrc-487d5f7f1cbe9fb28ec63a9aefe0cd5f696e3f7b.tar.gz |
Fix compilation errors on NetBSD-current.
Diffstat (limited to 'net/arla/patches')
-rw-r--r-- | net/arla/patches/patch-br | 33 | ||||
-rw-r--r-- | net/arla/patches/patch-bs | 25 |
2 files changed, 58 insertions, 0 deletions
diff --git a/net/arla/patches/patch-br b/net/arla/patches/patch-br new file mode 100644 index 00000000000..5f30b285bd0 --- /dev/null +++ b/net/arla/patches/patch-br @@ -0,0 +1,33 @@ +$NetBSD: patch-br,v 1.4 2007/05/13 20:59:48 agc Exp $ + +--- lib/roken/roken.h.in 2007/05/13 20:23:17 1.1 ++++ lib/roken/roken.h.in 2007/05/13 20:25:52 +@@ -53,6 +53,9 @@ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif ++#ifdef HAVE_SYS_BSWAP_H ++#include <sys/bswap.h> ++#endif + #ifdef HAVE_SYS_BITYPES_H + #include <sys/bitypes.h> + #endif +@@ -371,12 +374,16 @@ + void pidfile (const char*); + #endif + +-#ifndef HAVE_BSWAP32 ++#ifndef bswap32 ++# ifndef HAVE_BSWAP32 + unsigned int bswap32(unsigned int); ++# endif + #endif + +-#ifndef HAVE_BSWAP16 ++#ifndef bswap16 ++# ifndef HAVE_BSWAP16 + unsigned short bswap16(unsigned short); ++# endif + #endif + + #ifndef HAVE_FLOCK diff --git a/net/arla/patches/patch-bs b/net/arla/patches/patch-bs new file mode 100644 index 00000000000..803f979cd06 --- /dev/null +++ b/net/arla/patches/patch-bs @@ -0,0 +1,25 @@ +$NetBSD: patch-bs,v 1.5 2007/05/13 20:59:48 agc Exp $ + +--- lib/roken/bswap.c 2007/05/13 20:37:35 1.1 ++++ lib/roken/bswap.c 2007/05/13 20:39:58 +38a39,44 +> #include <sys/types.h> +> +> #ifdef HAVE_SYS_BSWAP_H +> #include <sys/bswap.h> +> #endif +> +41c47,48 +< #ifndef HAVE_BSWAP32 +--- +> #ifndef bswap32 +> # ifndef HAVE_BSWAP32 +50a58 +> # endif +53c61,62 +< #ifndef HAVE_BSWAP16 +--- +> #ifndef bswap16 +> # ifndef HAVE_BSWAP16 +60a70 +> # endif |