Module Name: src
Committed By: pooka
Date: Sat Jul 27 17:37:29 UTC 2013
Modified Files:
src/lib/librumphijack: Makefile hijack.c
Log Message:
Extend #undef _FORTIFY_SOURCE to both files to avoid compiler
warning for -O0 and fortify combination.
from Alessio Sergi via github
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/librumphijack/Makefile
cvs rdiff -u -r1.103 -r1.104 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/Makefile
diff -u src/lib/librumphijack/Makefile:1.10 src/lib/librumphijack/Makefile:1.11
--- src/lib/librumphijack/Makefile:1.10 Sat Aug 25 18:00:06 2012
+++ src/lib/librumphijack/Makefile Sat Jul 27 17:37:29 2013
@@ -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
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.103 src/lib/librumphijack/hijack.c:1.104
--- src/lib/librumphijack/hijack.c:1.103 Mon Jul 22 12:11:03 2013
+++ src/lib/librumphijack/hijack.c Sat Jul 27 17:37:29 2013
@@ -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>