From b3dd5f393cfce238cb0c3d1e9e63d3473d825533 Mon Sep 17 00:00:00 2001 From: minskim Date: Mon, 2 Aug 2004 21:12:48 +0000 Subject: Make this package build on Linux by defining S_IREAD, S_IWRITE, and u_long correctly. --- ham/7plus/distinfo | 3 ++- ham/7plus/patches/patch-aa | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ham/7plus/patches/patch-aa (limited to 'ham') diff --git a/ham/7plus/distinfo b/ham/7plus/distinfo index 5fa4638f383..ce01d1c5bc1 100644 --- a/ham/7plus/distinfo +++ b/ham/7plus/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2001/04/18 13:47:17 agc Exp $ +$NetBSD: distinfo,v 1.3 2004/08/02 21:12:48 minskim Exp $ SHA1 (7pl225sr.tgz) = 9c393e8f6968d24ec469fbca45ade65a5c6d52fc Size (7pl225sr.tgz) = 65122 bytes SHA1 (7pl210mg.tgz) = 7acc708cabf8d166f74bd398940fb71aac2c7495 Size (7pl210mg.tgz) = 31095 bytes +SHA1 (patch-aa) = 73efc40a0dc294fdce0abc52dd8810c8d2ff9ba6 diff --git a/ham/7plus/patches/patch-aa b/ham/7plus/patches/patch-aa new file mode 100644 index 00000000000..eda24353a44 --- /dev/null +++ b/ham/7plus/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1 2004/08/02 21:12:48 minskim Exp $ + +--- 7plus.h.orig 2000-01-10 09:03:02.000000000 -0600 ++++ 7plus.h +@@ -225,6 +225,12 @@ + #include + #include + #include ++ #ifndef S_IREAD ++ #define S_IREAD S_IRUSR ++ #endif ++ #ifndef S_IWRITE ++ #define S_IWRITE S_IWUSR ++ #endif + #endif /* __linux__ */ + + #ifdef __NetBSD__ +@@ -343,7 +349,7 @@ + + /** shorthands for unsigned types **/ + typedef unsigned char byte; /* 8bit unsigned char */ +-#ifdef __unix__ ++#if defined(__unix__) && !defined(__linux__) + #ifdef __vax__ + typedef u_long ulong; + #endif -- cgit v1.2.3