Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 don't include fmemopen in tools builds. ...
details: https://anonhg.NetBSD.org/src/rev/13ddbd09eea4
branches: trunk
changeset: 328789:13ddbd09eea4
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 18 02:17:14 2014 +0000
description:
don't include fmemopen in tools builds. Since tools does not define
_NETBSD_SOURCE, we don't get the fmemopen prototype
diffstat:
usr.bin/xlint/lint1/main1.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r cb11a82c03c9 -r 13ddbd09eea4 usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c Fri Apr 18 01:39:57 2014 +0000
+++ b/usr.bin/xlint/lint1/main1.c Fri Apr 18 02:17:14 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main1.c,v 1.23 2014/04/18 01:18:54 christos Exp $ */
+/* $NetBSD: main1.c,v 1.24 2014/04/18 02:17:14 christos Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.23 2014/04/18 01:18:54 christos Exp $");
+__RCSID("$NetBSD: main1.c,v 1.24 2014/04/18 02:17:14 christos Exp $");
#endif
#include <sys/types.h>
@@ -128,7 +128,7 @@
static void usage(void);
-#ifdef __NetBSD__
+#if !HAVE_NBTOOL_CONFIG_H
static const char builtins[] =
"int __builtin_isinf(long double);\n"
"int __builtin_isnan(long double);\n"
@@ -222,7 +222,7 @@
initscan();
initmtab();
-#ifdef __NetBSD__
+#if !HAVE_NBTOOL_CONFIG_H
if ((yyin = fmemopen(__UNCONST(builtins), sizeof(builtins) - 1, "r"))
== NULL)
err(1, "cannot open builtins");
Home |
Main Index |
Thread Index |
Old Index