Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang specific.
This commit is contained in:
parent
58e6f34180
commit
f222e3cc8d
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.13 2020/02/08 00:11:18 kamil Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2020/06/01 01:03:21 kamil Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
@ -41,8 +41,4 @@ LDADD.h_nsd_recurse+= -lpthread
|
||||
|
||||
CLEANFILES+= aton_ether_subr.c
|
||||
|
||||
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
|
||||
COPTS.h_nsd_recurse.c+= -Wno-macro-redefined # _REENTRANT redefined
|
||||
.endif
|
||||
|
||||
.include <bsd.test.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: h_nsd_recurse.c,v 1.2 2011/01/13 02:24:51 pgoyette Exp $ */
|
||||
/* $NetBSD: h_nsd_recurse.c,v 1.3 2020/06/01 01:03:21 kamil Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
@ -32,9 +32,11 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: h_nsd_recurse.c,v 1.2 2011/01/13 02:24:51 pgoyette Exp $");
|
||||
__RCSID("$NetBSD: h_nsd_recurse.c,v 1.3 2020/06/01 01:03:21 kamil Exp $");
|
||||
|
||||
#ifndef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <nsswitch.h>
|
||||
|
Loading…
Reference in New Issue
Block a user