diff options
author | joerg <joerg@pkgsrc.org> | 2017-04-14 17:48:56 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-04-14 17:48:56 +0000 |
commit | 778587991d26ae973bc5e7de6bdd30df043f9794 (patch) | |
tree | adcffb0af399959630304d396edf8c40b27609d6 | |
parent | c7ec6f88d0fcae2dccbe5e6abbe79fb39864aad9 (diff) | |
download | pkgsrc-778587991d26ae973bc5e7de6bdd30df043f9794.tar.gz |
Avoid type conflicts with compiler builtins by including the correct
system header first before defining macros of the same name.
-rw-r--r-- | archivers/advancecomp/distinfo | 3 | ||||
-rw-r--r-- | archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/archivers/advancecomp/distinfo b/archivers/advancecomp/distinfo index 7d40b62b373..ff901fb9611 100644 --- a/archivers/advancecomp/distinfo +++ b/archivers/advancecomp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2017/04/11 13:47:08 mef Exp $ +$NetBSD: distinfo,v 1.9 2017/04/14 17:48:56 joerg Exp $ SHA1 (advancecomp-1.23.tar.gz) = 0c6d24c4a01eed5e229cb1fda2017fdce0a26fbc RMD160 (advancecomp-1.23.tar.gz) = cd99a36ba2d4d428d08e91c566228550f41bd9f5 @@ -7,3 +7,4 @@ Size (advancecomp-1.23.tar.gz) = 1288937 bytes SHA1 (patch-aa) = ddc8b6981e1e0b46ac6291aee65d56cdae9f0998 SHA1 (patch-ab) = 1e6e10943bd2a414d4f704bd94b1de3d1036dd90 SHA1 (patch-ac) = d08d44224c4351c66c920b26bacc3f749a54d31a +SHA1 (patch-libdeflate_compiler__gcc.h) = e7d0c01f7fae2ea53e74edd0e849e9243b132661 diff --git a/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h b/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h new file mode 100644 index 00000000000..22e7184c111 --- /dev/null +++ b/archivers/advancecomp/patches/patch-libdeflate_compiler__gcc.h @@ -0,0 +1,16 @@ +$NetBSD: patch-libdeflate_compiler__gcc.h,v 1.1 2017/04/14 17:48:56 joerg Exp $ + +--- libdeflate/compiler_gcc.h.orig 2017-04-12 14:01:12.705351515 +0000 ++++ libdeflate/compiler_gcc.h +@@ -3,6 +3,11 @@ + * handles clang and the Intel C Compiler. + */ + ++#ifdef __NetBSD__ ++/* Avoid conflicts due to changing the prototypes of bswap32 and co. */ ++#include <sys/endian.h> ++#endif ++ + #define GCC_PREREQ(major, minor) \ + (__GNUC__ > (major) || \ + (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) |