pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/nnn sysutils/nnn: Fix on Solaris 11
details: https://anonhg.NetBSD.org/pkgsrc/rev/433b64cf797c
branches: trunk
changeset: 768530:433b64cf797c
user: sjmulder <sjmulder%pkgsrc.org@localhost>
date: Mon Oct 25 22:26:53 2021 +0000
description:
sysutils/nnn: Fix on Solaris 11
Build on Solaris 11, which does have dprintf(), broke because of
the compat drop-in for Illumos, which doesn't, because it was declared
static so it didn't match the stdio.h prototype.
diffstat:
sysutils/nnn/distinfo | 4 ++--
sysutils/nnn/patches/patch-src_nnn.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 65bfbbfcd50e -r 433b64cf797c sysutils/nnn/distinfo
--- a/sysutils/nnn/distinfo Mon Oct 25 17:44:49 2021 +0000
+++ b/sysutils/nnn/distinfo Mon Oct 25 22:26:53 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.23 2021/10/07 14:58:08 nia Exp $
+$NetBSD: distinfo,v 1.24 2021/10/25 22:26:53 sjmulder Exp $
RMD160 (nnn-4.3.tar.gz) = 8b427389d71d4f47ed494c3f089ad77d601b1a1b
SHA512 (nnn-4.3.tar.gz) = 588af174d86db14acf5d1e2ac42f88ca5c6f0e105996a58771e7e0f989f224616e7a12d74fecc96540a9782db0cf8857c21bf0f50df4ee3b4b5c641291c64575
Size (nnn-4.3.tar.gz) = 236606 bytes
-SHA1 (patch-src_nnn.c) = e7ea87e3584f3d19385df434a98868ac2e008e6a
+SHA1 (patch-src_nnn.c) = cbd382a0fe4c5cce1f384987d006675cbf280bdc
diff -r 65bfbbfcd50e -r 433b64cf797c sysutils/nnn/patches/patch-src_nnn.c
--- a/sysutils/nnn/patches/patch-src_nnn.c Mon Oct 25 17:44:49 2021 +0000
+++ b/sysutils/nnn/patches/patch-src_nnn.c Mon Oct 25 22:26:53 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_nnn.c,v 1.4 2021/09/28 23:31:04 sjmulder Exp $
+$NetBSD: patch-src_nnn.c,v 1.5 2021/10/25 22:26:53 sjmulder Exp $
dprintf() polyfill for Solaris
@@ -8,7 +8,7 @@
#define alloca(size) __builtin_alloca(size)
#endif
-+#ifdef __sun
++#ifdef __sun /* for Illumos. Solaris 11 has it. */
+#define NEED_DPRINTF
+#endif
+
@@ -20,7 +20,7 @@
/* Functions */
+#ifdef NEED_DPRINTF
-+static int dprintf(int fd, const char *format, ...)
++int dprintf(int fd, const char *format, ...)
+{
+ va_list ap;
+ char *s;
Home |
Main Index |
Thread Index |
Old Index