[tin-dev] [tin 2.6.3] snapshots

Urs Janßen urs at tin.org
Fri Dec 1 14:03:18 CET 2023


In <mailman.2029.1701425622.1791.tin-dev at tin.org> on Fri, 01 Dec 2023 11:13:40,
    Urs Janßen wrote:
> testers: feedback from exotic (or old) OSs, architectures and compilers
> welcome (anything other than x86_64-pc-linux-gnu ,-).

testing on i386-sni-sysv4 (SINIX-Z 5.42 B20) with cc 5.0 revealed
that I missed a rule for heapsort.o in src/Makefile[.in] in case the
system lacks heapsort() and was'n configured with --disable-heapsort.

Thr following should fix this. It didn't show up on other systems
lacking heapsort() as they have a smater make... (that SINIX is
from early 1990s).

=== modified file 'src/Makefile.in'
--- old/src/Makefile.in	2023-11-06 12:03:47 +0000
+++ new/src/Makefile.in	2023-12-01 12:41:16 +0000
@@ -1,7 +1,7 @@
 # Source Makefile for tin
 # - for configuration options read the ../doc/INSTALL file.
 #
-# Updated: 2023-08-02
+# Updated: 2023-12-01
 #
 # Copyright (c) 1995-2024 Thomas E. Dickey <dickey at invisible-island.net>
 # All rights reserved.
@@ -558,6 +558,7 @@
 $(OBJDIR)/hashstr$o :		$(SRCDIR)/hashstr.c $(TIN_DEP)
 $(OBJDIR)/header$o :		$(SRCDIR)/header.c $(TIN_DEP) \
 				$(INCDIR)/tnntp.h
+$(OBJDIR)/heapsort$o :		$(SRCDIR)/heapsort.c $(TIN_DEP)
 $(OBJDIR)/help$o :		$(SRCDIR)/help.c $(TIN_DEP) \
 				$(INCDIR)/keymap.h
 $(OBJDIR)/inews$o :		$(SRCDIR)/inews.c $(TIN_DEP) \

=== modified file 'src/heapsort.c'
--- old/src/heapsort.c	2019-12-18 12:08:59 +0000
+++ new/src/heapsort.c	2023-12-01 12:40:53 +0000
@@ -185,4 +185,11 @@
 	free(k);
 	return (0);
 }
+#else
+static void no_own_heapsort(void);	/* proto-type */
+static void
+no_own_heapsort(	/* ANSI C requires non-empty source file */
+	void)
+{
+}
 #endif /* USE_HEAPSORT && !HAVE_HEAPSORT */




More information about the tin-dev mailing list