Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/common Need nbtools_confi...



details:   https://anonhg.NetBSD.org/src/rev/8b6057cf5884
branches:  trunk
changeset: 813606:8b6057cf5884
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 05 19:56:00 2016 +0000

description:
Need nbtools_config.h for __unused.

Fixes

.../src/tools/ctfmerge/../../external/cddl/osnet/dist/tools/ctf/common/list.c:73:47: error: expected ';', ',' or ')' before '__unused'
 list_defcmp(void *d1, void *d2, void *private __unused)
                                               ^~~~~~~~

on non-NetBSD systems, where <assert.h>, <stdlib.h>, <stdio.h>, and
<sys/types.h> don't define __unused.

diffstat:

 external/cddl/osnet/dist/tools/ctf/common/list.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 8e650a2e810c -r 8b6057cf5884 external/cddl/osnet/dist/tools/ctf/common/list.c
--- a/external/cddl/osnet/dist/tools/ctf/common/list.c  Fri Feb 05 17:20:54 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/common/list.c  Fri Feb 05 19:56:00 2016 +0000
@@ -30,6 +30,10 @@
  * Routines for manipulating linked lists
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+# include "nbtool_config.h"
+#endif
+
 #include <stdio.h>
 #include <assert.h>
 #include <stdlib.h>



Home | Main Index | Thread Index | Old Index