diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/analog/files/analog-6.0-undefined-macro.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/analog/files/analog-6.0-undefined-macro.patch')
-rw-r--r-- | app-admin/analog/files/analog-6.0-undefined-macro.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-admin/analog/files/analog-6.0-undefined-macro.patch b/app-admin/analog/files/analog-6.0-undefined-macro.patch new file mode 100644 index 000000000000..5a98541c465c --- /dev/null +++ b/app-admin/analog/files/analog-6.0-undefined-macro.patch @@ -0,0 +1,38 @@ +--- a/src/unzip/ioapi.h 2004-12-19 14:51:32.000000000 +0100 ++++ b/src/unzip/ioapi.h 2012-01-11 18:07:59.570768250 +0100 +@@ -35,6 +35,16 @@ + extern "C" { + #endif + ++/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */ ++#ifndef OF ++#ifdef __STDC__ ++#define OF(x) x ++#else ++#define OF(x) () ++#endif ++#endif ++ ++ + typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode)); + typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); + typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); +--- a/src/unzip/unzip.h 2004-12-19 14:51:32.000000000 +0100 ++++ b/src/unzip/unzip.h 2012-01-11 18:00:25.988120225 +0100 +@@ -47,6 +47,15 @@ + extern "C" { + #endif + ++/* Work-around for NetBSD. Its zconf.h doesn't define OF(x) */ ++#ifndef OF ++#ifdef __STDC__ ++#define OF(x) x ++#else ++#define OF(x) () ++#endif ++#endif ++ + #ifndef _ZLIB_H + #include "../zlib/zlib.h" + #endif + |