Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
This commit is contained in:
parent
b4c87b8eb8
commit
58e6f34180
4
external/bsd/fetch/dist/libfetch/http.c
vendored
4
external/bsd/fetch/dist/libfetch/http.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: http.c,v 1.3 2014/01/07 02:13:00 joerg Exp $ */
|
||||
/* $NetBSD: http.c,v 1.4 2020/06/01 00:55:24 kamil Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
|
||||
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
|
||||
@ -68,8 +68,10 @@
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _REENTRANT
|
||||
/* Needed for gmtime_r on Interix */
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
|
6
external/bsd/fetch/lib/Makefile
vendored
6
external/bsd/fetch/lib/Makefile
vendored
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.16 2020/02/08 00:11:18 kamil Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2020/06/01 00:55:24 kamil Exp $
|
||||
|
||||
LIB= fetch
|
||||
SRCS= fetch.c common.c ftp.c http.c file.c
|
||||
@ -32,10 +32,6 @@ httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
|
||||
${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
|
||||
${LIBFETCHDIR}/http.errors > ${.TARGET}
|
||||
|
||||
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
|
||||
CFLAGS+= -Wno-macro-redefined # _REENTRANT redefined
|
||||
.endif
|
||||
|
||||
COPTS.http.c+= ${GCC_NO_STRINGOP_TRUNCATION}
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user