From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 4F9646849 for ; Sat, 21 Mar 2015 04:23:33 +0100 (CET) Received: by pagj4 with SMTP id j4so36266840pag.2 for ; Fri, 20 Mar 2015 20:23:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mkCdDaXNglXhomPkW1zdbZjd3Y5JovTXBbogbkfMKd8=; b=L2yHFyz6TRbChbmDoF+3vKsrQKh/xS/mpCQqfgy6pl7Ru03TTwyNmsPP7kDGAuAEeI D1HiALVfUAQlGCLBl4TJPbFnopqftsP7TQkCOxw++ozqSmbGUMeXft5o5XMKsv1qqy2i NlFc8WGX5KdL5GDvhUYf3c8Do3jVKEt9vlX2v0Pl+WGomsjVKpBddjYD929wd1h9969n hhmthVMeAGoHMNy9XKiRXnf1GHtUfW1VUig1TiJpIBLRln+NtKRPIKdPDMz3YdvfYPkz rT8Rv1JvMwj7D86lK6enyM6W5oysxR22J8ytDwIYssfTzw8Z+wCrGVTBqKXXoskQxnj7 CDOg== X-Gm-Message-State: ALoCoQlrSRdl2at8wPDeCqAN3cG/BBoznitSy/57Qctq9BKvOpcvifV9o8/ICcZ2DhxnPuoFNCPf X-Received: by 10.68.248.39 with SMTP id yj7mr1805018pbc.58.1426908212697; Fri, 20 Mar 2015 20:23:32 -0700 (PDT) Received: from localhost (7c295ef2.i-revonet.jp. [124.41.94.242]) by mx.google.com with ESMTPSA id r8sm10142326pdp.10.2015.03.20.20.23.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2015 20:23:31 -0700 (PDT) From: Takuya ASADA To: dev@dpdk.org Date: Sat, 21 Mar 2015 12:22:59 +0900 Message-Id: <1426908185-27940-3-git-send-email-syuu@cloudius-systems.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426908185-27940-1-git-send-email-syuu@cloudius-systems.com> References: <1426194348-4406-1-git-send-email-syuu@cloudius-systems.com> <1426908185-27940-1-git-send-email-syuu@cloudius-systems.com> Subject: [dpdk-dev] [RFC PATCHv2 2/8] eal: Add extern C on eal_hugepages.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2015 03:23:33 -0000 This is required to link with OSv EAL. Signed-off-by: Takuya ASADA --- lib/librte_eal/common/eal_hugepages.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/common/eal_hugepages.h b/lib/librte_eal/common/eal_hugepages.h index 38edac0..b722aee 100644 --- a/lib/librte_eal/common/eal_hugepages.h +++ b/lib/librte_eal/common/eal_hugepages.h @@ -34,6 +34,10 @@ #ifndef EAL_HUGEPAGES_H #define EAL_HUGEPAGES_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -64,4 +68,8 @@ struct hugepage_file { */ int eal_hugepage_info_init(void); +#ifdef __cplusplus +} +#endif + #endif /* EAL_HUGEPAGES_H */ -- 2.1.0