From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kapsi.fi ([217.30.184.167]:58417 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752617AbaIAG0k (ORCPT ); Mon, 1 Sep 2014 02:26:40 -0400 From: Mikko Rapeli Subject: [RFC PATCH v2 21/27] gntalloc.h: include stdint.h in userspace Date: Mon, 1 Sep 2014 09:26:12 +0300 Message-Id: <1409552778-2537-22-git-send-email-mikko.rapeli@iki.fi> In-Reply-To: <1409552778-2537-1-git-send-email-mikko.rapeli@iki.fi> References: <1408660449-4011-1-git-send-email-mikko.rapeli@iki.fi> <1409552778-2537-1-git-send-email-mikko.rapeli@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, mikko.rapeli@iki.fi Fixes compilation error: xen/gntalloc.h:22:2: error: unknown type name ‘uint16_t’ Signed-off-by: Mikko Rapeli --- include/uapi/xen/gntalloc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/xen/gntalloc.h b/include/uapi/xen/gntalloc.h index 76bd580..184df7e 100644 --- a/include/uapi/xen/gntalloc.h +++ b/include/uapi/xen/gntalloc.h @@ -11,6 +11,12 @@ #ifndef __LINUX_PUBLIC_GNTALLOC_H__ #define __LINUX_PUBLIC_GNTALLOC_H__ +#ifdef __KERNEL__ +#include +#else +#include +#endif + /* * Allocates a new page and creates a new grant reference. */ -- 2.1.0