From patchwork Thu Feb 26 16:43:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 45190 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D1DF72043C for ; Thu, 26 Feb 2015 16:43:55 +0000 (UTC) Received: by labgm9 with SMTP id gm9sf9315950lab.2 for ; Thu, 26 Feb 2015 08:43:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=vXNCbhO2tioefOGkZI6ere+Dq639gU8sywJY+n5pwLQ=; b=H8wRw55jgbEqvSiCj6WsOk6uaaYBUFRXs9uRvPJFKEz5CpOShhMJNWOQnMeXScXAQO pdREOhOKVJJm/ngWXBWcGl8x0vSXJUSHsApmMiMHQvgnN2F2d70UODgIVXOVXSRJE4cg Lu/AWxRq3Uqo7HD6V3tyyWOv+mQw1mV6jdAY4oe4Rsn+3pkm1+Vlv+lWkYo62GV5Tyw0 IsF2YfaDQPXDkThxa12xmAk8l4By0GLVC9tT6quszYtjXbkqRlNM28rRNR+i6vXP5Qxz wkDsLcSt5Grw5khEeguh0GJCAIoOubES4LnIzBo8VsPEwN/wKUBrHDjoSGYn6xm4GSO+ kxXg== X-Gm-Message-State: ALoCoQn++JEpQUmi3YEL7mCiVUgGjsnrxscmriQUR7XXzoGG18vDTZemVur8CdkE6Jz0qltWCTdz X-Received: by 10.180.182.201 with SMTP id eg9mr1480543wic.3.1424969034750; Thu, 26 Feb 2015 08:43:54 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.136 with SMTP id e8ls63528lam.91.gmail; Thu, 26 Feb 2015 08:43:54 -0800 (PST) X-Received: by 10.152.21.100 with SMTP id u4mr8357719lae.41.1424969034525; Thu, 26 Feb 2015 08:43:54 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id cp4si951642lbb.142.2015.02.26.08.43.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 08:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labgf13 with SMTP id gf13so12121837lab.9 for ; Thu, 26 Feb 2015 08:43:54 -0800 (PST) X-Received: by 10.112.42.225 with SMTP id r1mr8406614lbl.72.1424969034438; Thu, 26 Feb 2015 08:43:54 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp3416577lbj; Thu, 26 Feb 2015 08:43:53 -0800 (PST) X-Received: by 10.170.188.10 with SMTP id f10mr8914295yke.22.1424969033030; Thu, 26 Feb 2015 08:43:53 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id d4si1222391qaw.68.2015.02.26.08.43.49 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 08:43:53 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YR1XQ-0001ra-CO; Thu, 26 Feb 2015 16:43:48 +0000 Received: from mail-qc0-f182.google.com ([209.85.216.182]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YR1X2-0001nd-Tj for lng-odp@lists.linaro.org; Thu, 26 Feb 2015 16:43:24 +0000 Received: by qcyl6 with SMTP id l6so9434398qcy.2 for ; Thu, 26 Feb 2015 08:43:19 -0800 (PST) X-Received: by 10.229.98.7 with SMTP id o7mr14126025qcn.30.1424968999751; Thu, 26 Feb 2015 08:43:19 -0800 (PST) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id g21sm808681qhc.35.2015.02.26.08.43.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 08:43:19 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org, bill.fischofer@linaro.org Date: Thu, 26 Feb 2015 11:43:02 -0500 Message-Id: <1424968984-30171-6-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424968984-30171-1-git-send-email-mike.holmes@linaro.org> References: <1424968984-30171-1-git-send-email-mike.holmes@linaro.org> MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] =?utf-8?q?=5BPATCH_v4_5/7=5D_example=3A_odp=5Fipsec=5Fs?= =?utf-8?q?tream=3A_fix_c99_unknown_type_name_=E2=80=98uint?= =?utf-8?b?4oCZ?= X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 odp_ipsec_stream.c:190:2: error: unknown type name ‘uint’ uint i; Signed-off-by: Mike Holmes --- example/ipsec/odp_ipsec_stream.c | 5 ++++- example/l2fwd/odp_l2fwd.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c index 788432d..ed07355 100644 --- a/example/ipsec/odp_ipsec_stream.c +++ b/example/ipsec/odp_ipsec_stream.c @@ -4,6 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ +/* enable strtok */ +#define _POSIX_C_SOURCE 200112L + #include #include @@ -184,7 +187,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream, odph_esphdr_t *esp = NULL; odph_icmphdr_t *icmp; stream_pkt_hdr_t *test; - uint i; + unsigned i; /* Get packet */ pkt = odp_packet_alloc(pkt_pool, 0); diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c index 0326a3c..b0a93fa 100644 --- a/example/l2fwd/odp_l2fwd.c +++ b/example/l2fwd/odp_l2fwd.c @@ -10,6 +10,9 @@ * @example odp_l2fwd.c ODP basic forwarding application */ +/** enable strtok */ +#define _POSIX_C_SOURCE 200112L + #include #include #include