Unset HAVE_DEVNAME for tools build.

config only checks for the symbol in libc, we need the correct prototype.
Which is excluded even on NetBSD (_NETBSD_SOURCE isn't defined in stdlib.h).
This commit is contained in:
dsl 2013-01-03 13:28:41 +00:00
parent f1ca281eda
commit 44483cabc1

View File

@ -1,4 +1,4 @@
/* $NetBSD: stat.c,v 1.37 2012/12/02 21:13:07 erh Exp $ */
/* $NetBSD: stat.c,v 1.38 2013/01/03 13:28:41 dsl Exp $ */
/*
* Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
@ -31,11 +31,13 @@
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
/* config checked libc, we need the prototype as well */
#undef HAVE_DEVNAME
#endif
#include <sys/cdefs.h>
#if !defined(lint)
__RCSID("$NetBSD: stat.c,v 1.37 2012/12/02 21:13:07 erh Exp $");
__RCSID("$NetBSD: stat.c,v 1.38 2013/01/03 13:28:41 dsl Exp $");
#endif
#if ! HAVE_NBTOOL_CONFIG_H