From 99f8dc922033821edcc13f9f8360e9fda40dfcff Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 3 Jul 2014 01:28:45 +0530 Subject: Fix -Wundef warning on PAGE_COPY_THRESHOLD The PAGE_COPY_THRESHOLD macro is meant to be overridden by architecture-specific pagecopy.h, but it is currently done only by mach; all other architectures use the default. Check to see if the macro is defined in addition to whether it is set to a non-zero value. --- debug/memcpy_chk.c | 1 - debug/mempcpy_chk.c | 1 - 2 files changed, 2 deletions(-) (limited to 'debug') diff --git a/debug/memcpy_chk.c b/debug/memcpy_chk.c index 9bf5d9f6c0..539b7e2d31 100644 --- a/debug/memcpy_chk.c +++ b/debug/memcpy_chk.c @@ -20,7 +20,6 @@ #include #include -#include void * __memcpy_chk (dstpp, srcpp, len, dstlen) diff --git a/debug/mempcpy_chk.c b/debug/mempcpy_chk.c index 105356f978..3ca916b83e 100644 --- a/debug/mempcpy_chk.c +++ b/debug/mempcpy_chk.c @@ -21,7 +21,6 @@ #include #include -#include void * __mempcpy_chk (dstpp, srcpp, len, dstlen) -- cgit 1.4.1