summaryrefslogtreecommitdiff
path: root/net/spreadlogd/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-15 16:16:50 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-15 16:16:50 +0000
commitf7b9b93dbc08644f6192562a4540612b66299b56 (patch)
treed0f7f5693a9dfdb83dbe8d3f1a4de64d59489394 /net/spreadlogd/patches
parent2df940d7bfc8758126ec5b4ed129f6e5777b9e94 (diff)
downloadpkgsrc-f7b9b93dbc08644f6192562a4540612b66299b56.tar.gz
Fix LP64, require Perl as it installs a Perl module and add DESTDIR.
Diffstat (limited to 'net/spreadlogd/patches')
-rw-r--r--net/spreadlogd/patches/patch-ad25
-rw-r--r--net/spreadlogd/patches/patch-ae19
2 files changed, 44 insertions, 0 deletions
diff --git a/net/spreadlogd/patches/patch-ad b/net/spreadlogd/patches/patch-ad
new file mode 100644
index 00000000000..774d46ec119
--- /dev/null
+++ b/net/spreadlogd/patches/patch-ad
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1 2009/02/15 16:16:50 joerg Exp $
+
+--- nethelp.h.orig 2006-05-05 19:50:18.000000000 +0200
++++ nethelp.h
+@@ -26,20 +26,4 @@ int tcp_listen_on(const char *addr, unsi
+ int tcp_dispatch(const char *addr, unsigned short port, int backlog, int mask,
+ void (*dispatch)(int, short, void *), void *userdata);
+
+-
+-#if BYTE_ORDER == BIG_ENDIAN
+-static inline unsigned long long bswap64(unsigned long long _x) {
+- return _x;
+-}
+-#elif BYTE_ORDER == LITTLE_ENDIAN
+-static inline unsigned long long bswap64(unsigned long long _x) {
+- return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) |
+- ((_x >> 8) & 0xff000000) |
+- ((_x << 8) & ((unsigned long long)0xff << 32)) |
+- ((_x << 24) & ((unsigned long long)0xff << 40)) |
+- ((_x << 40) & ((unsigned long long)0xff << 48)) | ((_x << 56)));
+-}
+-#else
+-#error Unsupported byte order
+-#endif
+ #endif
diff --git a/net/spreadlogd/patches/patch-ae b/net/spreadlogd/patches/patch-ae
new file mode 100644
index 00000000000..7951a757340
--- /dev/null
+++ b/net/spreadlogd/patches/patch-ae
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.1 2009/02/15 16:16:50 joerg Exp $
+
+--- perl.h.orig 2006-05-05 19:50:18.000000000 +0200
++++ perl.h
+@@ -1,11 +1,11 @@
+ #ifndef __PERL_H_
+ #define __PERL_H_
+
++#include <EXTERN.h>
++#include <perl.h>
++
+ void perl_startup();
+ void perl_shutdown();
+-#ifndef I32
+-#define I32 int
+-#endif
+ I32 perl_inc(char *path);
+ I32 perl_use(char *module);
+ I32 perl_log(char *func, char *sender, char *group, char *message);