diff options
author | minskim <minskim> | 2004-08-02 21:12:48 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-08-02 21:12:48 +0000 |
commit | b3dd5f393cfce238cb0c3d1e9e63d3473d825533 (patch) | |
tree | c1ee5dbd0f94ba18cc23e6d3e19e87b1ab4813aa /ham/7plus/patches | |
parent | b6e50099fee36b6f2a886c8f3c66627ba552a983 (diff) | |
download | pkgsrc-b3dd5f393cfce238cb0c3d1e9e63d3473d825533.tar.gz |
Make this package build on Linux by defining S_IREAD, S_IWRITE, and
u_long correctly.
Diffstat (limited to 'ham/7plus/patches')
-rw-r--r-- | ham/7plus/patches/patch-aa | 26 |
1 files changed, 26 insertions, 0 deletions
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 <string.h> + #include <linux/limits.h> + #include <sys/ioctl.h> ++ #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 |