Module Name:    src
Committed By:   rin
Date:           Tue Feb 23 16:03:01 UTC 2021

Modified Files:
        src/tools/compat: compat_defs.h

Log Message:
Fix copy-paste error for heapsort(3), so that it is declared appropriately.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/tools/compat/compat_defs.h

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

Modified files:

Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.116 src/tools/compat/compat_defs.h:1.117
--- src/tools/compat/compat_defs.h:1.116	Wed Jun 19 23:33:07 2019
+++ src/tools/compat/compat_defs.h	Tue Feb 23 16:03:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_defs.h,v 1.116 2019/06/19 23:33:07 kamil Exp $	*/
+/*	$NetBSD: compat_defs.h,v 1.117 2021/02/23 16:03:00 rin Exp $	*/
 
 #ifndef	__NETBSD_COMPAT_DEFS_H__
 #define	__NETBSD_COMPAT_DEFS_H__
@@ -462,11 +462,10 @@ int __nbcompat_gettemp(char *, int *, in
 ssize_t pread(int, void *, size_t, off_t);
 #endif
 
+#define heapsort __nbcompat_heapsort
 #if !HAVE_DECL_HEAPSORT
 int heapsort (void *, size_t, size_t, int (*)(const void *, const void *));
 #endif
-/* Make them use our version */
-#  define heapsort __nbcompat_heapsort
 
 char	       *flags_to_string(unsigned long, const char *);
 int		string_to_flags(char **, unsigned long *, unsigned long *);

Reply via email to