Extend #undef _FORTIFY_SOURCE to both files to avoid compiler
warning for -O0 and fortify combination. from Alessio Sergi via github
This commit is contained in:
parent
ddc0ac3bda
commit
2eebe6e2de
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 2012/08/25 18:00:06 pooka Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2013/07/27 17:37:29 pooka Exp $
|
||||
#
|
||||
|
||||
LIB= rumphijack
|
||||
|
@ -11,6 +11,7 @@ MAN= rumphijack.3
|
|||
SRCS= hijack.c hijackdlsym.c
|
||||
|
||||
CPPFLAGS+= -D_DIAGNOSTIC -D_REENTRANT -I${.CURDIR}/../librumpuser
|
||||
CPPFLAGS+= -U_FORTIFY_SOURCE
|
||||
|
||||
WARNS?= 5
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hijack.c,v 1.103 2013/07/22 12:11:03 pooka Exp $ */
|
||||
/* $NetBSD: hijack.c,v 1.104 2013/07/27 17:37:29 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
|
||||
|
@ -25,13 +25,10 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* Disable namespace mangling, Fortification is useless here anyway. */
|
||||
#undef _FORTIFY_SOURCE
|
||||
|
||||
#include "rumpuser_port.h"
|
||||
|
||||
#if !defined(lint)
|
||||
__RCSID("$NetBSD: hijack.c,v 1.103 2013/07/22 12:11:03 pooka Exp $");
|
||||
__RCSID("$NetBSD: hijack.c,v 1.104 2013/07/27 17:37:29 pooka Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
Loading…
Reference in New Issue