From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH 2/5] xen: Add headers to include/Makefile Date: Thu, 31 May 2012 15:52:32 +0100 Message-ID: <1338475955-26472-3-git-send-email-jean.guyader@citrix.com> References: <1338475955-26472-1-git-send-email-jean.guyader@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------true" Return-path: In-Reply-To: <1338475955-26472-1-git-send-email-jean.guyader@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Jean Guyader List-Id: xen-devel@lists.xenproject.org --------------true Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: 8bit Add stdlib.h for size_t Add string.h for memcpy Add sys/types.h for ssize_t Signed-off-by: Jean Guyader --- xen/include/Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) --------------true Content-Type: text/x-patch; name="0002-xen-Add-headers-to-include-Makefile.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0002-xen-Add-headers-to-include-Makefile.patch" diff --git a/xen/include/Makefile b/xen/include/Makefile index 62846a1..67aaef4 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -77,8 +77,9 @@ ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH)) all: headers.chk +INCLUDE_LIBS=stdint.h stdlib.h string.h sys/types.h headers.chk: $(filter-out public/arch-% public/%ctl.h public/xsm/% public/%hvm/save.h, $(wildcard public/*.h public/*/*.h) $(public-y)) Makefile - for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new + for i in $(filter %.h,$^); do $(CC) -ansi ${INCLUDE_LIBS:%.h=-include %.h} -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new mv $@.new $@ endif --------------true Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------true--