pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/rhash



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Oct 16 07:37:04 UTC 2024

Modified Files:
        pkgsrc/misc/rhash: distinfo
Added Files:
        pkgsrc/misc/rhash/patches: patch-common__func.h

Log Message:
rhash: Fix build with GCC before 10.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/misc/rhash/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/rhash/patches/patch-common__func.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/rhash/distinfo
diff -u pkgsrc/misc/rhash/distinfo:1.25 pkgsrc/misc/rhash/distinfo:1.26
--- pkgsrc/misc/rhash/distinfo:1.25     Mon Oct 14 13:04:00 2024
+++ pkgsrc/misc/rhash/distinfo  Wed Oct 16 07:37:03 2024
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.25 2024/10/14 13:04:00 adam Exp $
+$NetBSD: distinfo,v 1.26 2024/10/16 07:37:03 nia Exp $
 
 BLAKE2s (rhash-1.4.5.tar.gz) = 3a9ec276de596097b4861eecbbbfa9e8e5addbb1db6ca98eeb502d4f77f19de4
 SHA512 (rhash-1.4.5.tar.gz) = 49bd6aa2497efc4871ae31eaca51d2dc78ceb7126311557d5280b14fafe9355eaecad37f0f78f865e4e1dd1aeb506d3301989cd2f9fff7b0091c81978e8c2f2e
 Size (rhash-1.4.5.tar.gz) = 444526 bytes
 SHA1 (patch-Makefile) = 55d3e148db36ab4bcff9fd23add3e32b51a3854c
+SHA1 (patch-common__func.h) = dae4b22b5469ce62efcbec6480b62a7acb2f1e86
 SHA1 (patch-configure) = 7ed3477a93aa321847dc3d84e6493f14be9509a3
 SHA1 (patch-librhash_Makefile) = 7d73616ed7f14e1d41fac2c5c788f6eed8a91b4d

Added files:

Index: pkgsrc/misc/rhash/patches/patch-common__func.h
diff -u /dev/null pkgsrc/misc/rhash/patches/patch-common__func.h:1.1
--- /dev/null   Wed Oct 16 07:37:04 2024
+++ pkgsrc/misc/rhash/patches/patch-common__func.h      Wed Oct 16 07:37:04 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-common__func.h,v 1.1 2024/10/16 07:37:04 nia Exp $
+
+Fix build with GCC before 10.
+
+--- common_func.h.orig 2024-10-16 07:30:15.066490418 +0000
++++ common_func.h
+@@ -142,6 +142,10 @@ wchar_t* rhash_wcsdup(const wchar_t* str
+ #define rsh_tstrdup(str) rsh_strdup(str)
+ #endif
+ 
++#ifndef __has_builtin
++#define __has_builtin(x) 0
++#endif
++
+ /* get_ctz - count traling zero bits */
+ #if (defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))) || \
+     (defined(__clang__) && __has_builtin(__builtin_ctz))



Home | Main Index | Thread Index | Old Index