diff options
author | roy <roy@pkgsrc.org> | 2009-09-03 19:29:26 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2009-09-03 19:29:26 +0000 |
commit | 88dd914262f62e1b5688f1c00a69426c38c58835 (patch) | |
tree | 4c861a4be7f303eecfe32158c130e6e264b32b68 /x11/rxvt-unicode/patches | |
parent | 72ffb166ff9d417994f820eb5e48e2c5caf0d1a0 (diff) | |
download | pkgsrc-88dd914262f62e1b5688f1c00a69426c38c58835.tar.gz |
Fix compiling against NetBSD popcount libc function.
Diffstat (limited to 'x11/rxvt-unicode/patches')
-rw-r--r-- | x11/rxvt-unicode/patches/patch-ba | 14 | ||||
-rw-r--r-- | x11/rxvt-unicode/patches/patch-bb | 23 | ||||
-rw-r--r-- | x11/rxvt-unicode/patches/patch-bc | 14 | ||||
-rw-r--r-- | x11/rxvt-unicode/patches/patch-bd | 14 | ||||
-rw-r--r-- | x11/rxvt-unicode/patches/patch-be | 16 |
5 files changed, 81 insertions, 0 deletions
diff --git a/x11/rxvt-unicode/patches/patch-ba b/x11/rxvt-unicode/patches/patch-ba new file mode 100644 index 00000000000..22ba51e1339 --- /dev/null +++ b/x11/rxvt-unicode/patches/patch-ba @@ -0,0 +1,14 @@ +$NetBSD: patch-ba,v 1.1 2009/09/03 19:29:26 roy Exp $ + +Check for popcount in libc + +--- configure 2009-09-03 20:08:10.000000000 +0100 ++++ configure 2009-09-03 20:08:24.000000000 +0100 +@@ -10617,6 +10617,7 @@ + revoke \ + _getpty \ + getpt \ ++ popcount \ + posix_openpt \ + isastream \ + setuid \ diff --git a/x11/rxvt-unicode/patches/patch-bb b/x11/rxvt-unicode/patches/patch-bb new file mode 100644 index 00000000000..21e90cffe7e --- /dev/null +++ b/x11/rxvt-unicode/patches/patch-bb @@ -0,0 +1,23 @@ +$NetBSD: patch-bb,v 1.1 2009/09/03 19:29:26 roy Exp $ + +Check for popcount in libc + +--- src/rxvtutil.h 2008-11-05 14:43:24.000000000 +0000 ++++ src/rxvtutil.h 2009-09-03 20:19:38.000000000 +0100 +@@ -94,12 +94,16 @@ + // some bit functions, xft fuck me plenty + #if HAVE_GCC_BUILTINS + static inline int ctz (unsigned int x) { return __builtin_ctz (x); } ++#if !HAVE_POPCOUNT + static inline int popcount (unsigned int x) { return __builtin_popcount (x); } ++#endif + #else + // count trailing zero bits and count # of one bits + int ctz (unsigned int x) CONST; ++#if !HAVE_POPCOUNT + int popcount (unsigned int x) CONST; + #endif ++#endif + + // in range including end + #define IN_RANGE_INC(val,beg,end) \ diff --git a/x11/rxvt-unicode/patches/patch-bc b/x11/rxvt-unicode/patches/patch-bc new file mode 100644 index 00000000000..9a387681fe7 --- /dev/null +++ b/x11/rxvt-unicode/patches/patch-bc @@ -0,0 +1,14 @@ +$NetBSD: patch-bc,v 1.1 2009/09/03 19:29:26 roy Exp $ + +Check for popcount in libc + +--- src/rxvtdaemon.C 2008-02-19 12:17:46.000000000 +0000 ++++ src/rxvtdaemon.C 2009-09-03 17:57:27.000000000 +0100 +@@ -31,6 +31,7 @@ + #include <sys/utsname.h> + #include <limits.h> + ++#include "../config.h" + #include "rxvtdaemon.h" + + char *rxvt_connection::unix_sockname () diff --git a/x11/rxvt-unicode/patches/patch-bd b/x11/rxvt-unicode/patches/patch-bd new file mode 100644 index 00000000000..2a1af2cd6f7 --- /dev/null +++ b/x11/rxvt-unicode/patches/patch-bd @@ -0,0 +1,14 @@ +$NetBSD: patch-bd,v 1.1 2009/09/03 19:29:26 roy Exp $ + +Check for popcount in libc + +--- src/rxvtutil.C 2008-02-19 12:17:46.000000000 +0000 ++++ src/rxvtutil.C 2009-09-03 17:57:27.000000000 +0100 +@@ -24,6 +24,7 @@ + #include <cstring> + #include <inttypes.h> + ++#include "../config.h" + #include "rxvtutil.h" + + class byteorder byteorder; diff --git a/x11/rxvt-unicode/patches/patch-be b/x11/rxvt-unicode/patches/patch-be new file mode 100644 index 00000000000..51a9804da39 --- /dev/null +++ b/x11/rxvt-unicode/patches/patch-be @@ -0,0 +1,16 @@ +$NetBSD: patch-be,v 1.1 2009/09/03 19:29:26 roy Exp $ + +Check for popcount in libc + +--- config.h.in 2009-09-03 20:14:02.000000000 +0100 ++++ config.h.in 2009-09-03 20:13:30.000000000 +0100 +@@ -269,6 +269,9 @@ + /* Define to 1 if you have the `_getpty' function. */ + #undef HAVE__GETPTY + ++/* Define to 1 if you have the `popcount' function. */ ++#undef HAVE_POPCOUNT ++ + /* Define if you want ISO 14755 extended support */ + #undef ISO_14755 + |