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. --- string/memcpy.c | 1 - string/memmove.c | 1 - 2 files changed, 2 deletions(-) (limited to 'string') diff --git a/string/memcpy.c b/string/memcpy.c index c19bad3b67..517f9ee883 100644 --- a/string/memcpy.c +++ b/string/memcpy.c @@ -20,7 +20,6 @@ #include #include -#include #undef memcpy diff --git a/string/memmove.c b/string/memmove.c index 3373401721..22140efc35 100644 --- a/string/memmove.c +++ b/string/memmove.c @@ -20,7 +20,6 @@ #include #include -#include /* All this is so that bcopy.c can #include this file after defining some things. */ -- cgit v1.2.3