pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/nnn



Module Name:    pkgsrc
Committed By:   sjmulder
Date:           Mon Oct 25 22:26:53 UTC 2021

Modified Files:
        pkgsrc/sysutils/nnn: distinfo
        pkgsrc/sysutils/nnn/patches: patch-src_nnn.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/sysutils/nnn/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/sysutils/nnn/patches/patch-src_nnn.c

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

Modified files:

Index: pkgsrc/sysutils/nnn/distinfo
diff -u pkgsrc/sysutils/nnn/distinfo:1.23 pkgsrc/sysutils/nnn/distinfo:1.24
--- pkgsrc/sysutils/nnn/distinfo:1.23   Thu Oct  7 14:58:08 2021
+++ pkgsrc/sysutils/nnn/distinfo        Mon Oct 25 22:26:53 2021
@@ -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

Index: pkgsrc/sysutils/nnn/patches/patch-src_nnn.c
diff -u pkgsrc/sysutils/nnn/patches/patch-src_nnn.c:1.4 pkgsrc/sysutils/nnn/patches/patch-src_nnn.c:1.5
--- pkgsrc/sysutils/nnn/patches/patch-src_nnn.c:1.4     Tue Sep 28 23:31:04 2021
+++ pkgsrc/sysutils/nnn/patches/patch-src_nnn.c Mon Oct 25 22:26:53 2021
@@ -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 @@ dprintf() polyfill for Solaris
  #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 @@ dprintf() polyfill for Solaris
  /* 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