From patchwork Thu Mar 12 21:05:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takuya ASADA X-Patchwork-Id: 4004 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C39F37F1C; Thu, 12 Mar 2015 22:06:05 +0100 (CET) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 84F5C9A91 for ; Thu, 12 Mar 2015 22:06:04 +0100 (CET) Received: by pablj1 with SMTP id lj1so23473487pab.10 for ; Thu, 12 Mar 2015 14:06:04 -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=mowF2t0SkkQ3r5Am6MAawfphf1YmeZUXidR4zwEckpc=; b=aiWj2k7lpkGN16qKRCckbi6nOIjVV8q0G651l8M8BTUDoJeOedc/nPuKIAUGiPTilO lHznmFZNReOHaYNmZYS04vQB+V7PkWmMFx60JunClNXeXcIl1mDVsL4WrG1j7c2VhUN+ BWUPtb8g2Uv8d965mUpx+6Cz5ncg9qMYot+/vmc3z6k17KwJ5M9HW5xmO4PhQJD/cYuo Odzilukk+TZkfhmaumbT1ihVFidCp1oLJ/pfYyq00hbTHam0ivydvW4DC70myvBlspIV 77SpY1PCd0FJYStcoNjs/Cic1Dac4JPGi548nsqCzxBsnjEZPnyQO3yV0F0egRPvcUDw a80Q== X-Gm-Message-State: ALoCoQl7woqkIrhB7ejV+qs4nLOzqyb40RBds15TphdAsHhptvYEp842564p00AwEKt4HjmgyFoy X-Received: by 10.70.91.227 with SMTP id ch3mr94566832pdb.111.1426194363886; Thu, 12 Mar 2015 14:06:03 -0700 (PDT) Received: from localhost (7c295ef2.i-revonet.jp. [124.41.94.242]) by mx.google.com with ESMTPSA id tr8sm21596pab.4.2015.03.12.14.06.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 14:06:03 -0700 (PDT) From: Takuya ASADA To: dev@dpdk.org Date: Fri, 13 Mar 2015 06:05:44 +0900 Message-Id: <1426194348-4406-4-git-send-email-syuu@cloudius-systems.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426194348-4406-1-git-send-email-syuu@cloudius-systems.com> References: <1426194348-4406-1-git-send-email-syuu@cloudius-systems.com> Subject: [dpdk-dev] [RFC PATCH 3/7] eal: Add extern C on eal_thread.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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This is required to link with OSv EAL. Signed-off-by: Takuya ASADA --- lib/librte_eal/common/eal_thread.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/common/eal_thread.h b/lib/librte_eal/common/eal_thread.h index e4e76b9..794137f 100644 --- a/lib/librte_eal/common/eal_thread.h +++ b/lib/librte_eal/common/eal_thread.h @@ -34,6 +34,10 @@ #ifndef EAL_THREAD_H #define EAL_THREAD_H +#ifdef __cplusplus +extern "C" { +#endif + #include /** @@ -97,4 +101,8 @@ int eal_cpuset_socket_id(rte_cpuset_t *cpusetp); int eal_thread_dump_affinity(char *str, unsigned size); +#ifdef __cplusplus +} +#endif + #endif /* EAL_THREAD_H */