From patchwork Tue Nov 11 10:51:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 418558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EC4611400D2 for ; Mon, 8 Dec 2014 13:51:40 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E89A128C17A; Mon, 8 Dec 2014 03:49:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DATE_IN_PAST_96_XX, FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DF50128C173 for ; Mon, 8 Dec 2014 03:49:15 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 8 Dec 2014 03:49:15 +0100 (CET) Received: by mail-pa0-f44.google.com with SMTP id et14so4342506pad.3 for ; Sun, 07 Dec 2014 18:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wmzm6AIcXbi2ivJXHesb9HSyz9dKpFQ4Ay5AlmqalZo=; b=OqxstsMjjRn02RNi6EQ8v0KsuH2yWozCTSvmd8nKSUkw2Ic1Ul9QIjXDbkC8O0mNdf HdZ3oly7tuDrthO2gLyYgHU95JZV60Allao8OgHMnv/zJgf0yl5ia9Gd2BD9OY+iKBGd UNWy5lLPvkr7gz68nYuYYcJF2sXMOAL4MaO0BdsbnuGx7ryT75lhxjB5mEC7NPCTs8n4 VSBe1ZYdhfnReUCMd7vyRwwoo95Ws8A5dOFMLkDlGrXwI9vN/rZgH0hLMVU/ndh8KZck BwakyxqU3HyGKedAhKbfUZdLgZQuVti4IwRhpcyUAVss0AYux7ipO3Dg61hBhK35OTPQ 9pQw== X-Received: by 10.70.49.41 with SMTP id r9mr16334249pdn.83.1418007056538; Sun, 07 Dec 2014 18:50:56 -0800 (PST) Received: from debian.lan ([103.29.140.56]) by mx.google.com with ESMTPSA id fn5sm34940623pdb.55.2014.12.07.18.50.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 18:50:55 -0800 (PST) From: Yousong Zhou To: openwrt-devel@lists.openwrt.org Date: Tue, 11 Nov 2014 18:51:30 +0800 Message-Id: <1415703092-46458-3-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1415703092-46458-1-git-send-email-yszhou4tech@gmail.com> References: <1415703092-46458-1-git-send-email-yszhou4tech@gmail.com> Subject: [OpenWrt-Devel] [PATCH 3/5] examples: fix build. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" - runqueue-example.c: fix include path for in-tree build. - blobmsg-example.c: add inttypes.h for using PRIu64. - add examples/ subdirectory to main CMakeLists.txt Signed-off-by: Yousong Zhou --- CMakeLists.txt | 1 + examples/blobmsg-example.c | 1 + examples/runqueue-example.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b1570c..ddd5533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ INSTALL(TARGETS ubox ubox-static ) ADD_SUBDIRECTORY(lua) +ADD_SUBDIRECTORY(examples) find_library(json NAMES json-c) IF(EXISTS ${json}) diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c index 69ddce8..01b0518 100644 --- a/examples/blobmsg-example.c +++ b/examples/blobmsg-example.c @@ -1,4 +1,5 @@ #include +#include #include "blobmsg.h" #include "blobmsg_json.h" diff --git a/examples/runqueue-example.c b/examples/runqueue-example.c index 1ae184a..16e6cf9 100644 --- a/examples/runqueue-example.c +++ b/examples/runqueue-example.c @@ -16,7 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include +#include #include #include #include