From patchwork Fri Feb 27 14:52:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 45231 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2B5F1204BC for ; Fri, 27 Feb 2015 14:53:19 +0000 (UTC) Received: by lams18 with SMTP id s18sf14761884lam.1 for ; Fri, 27 Feb 2015 06:53:18 -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=YrPresEvRwiO4MVetogRbxWC83aGLSDjgGIQXb1wo8A=; b=aGtC91Pu13oeN3pU4KQ5AoOj985+bsx6juz69+BFDfzuGfzl5Nci6VJkV2I/fT1N6M b20KaEr+KlvSsYHWuvV3gtdvlpCo62c3Q58j3aI8rESh25N5Q49+WsG3ugIuxWvXR3ra xE/0UzeYx4QE7JcjUFYCRjC40PfSzZjgEoZ1o6Cw9Nv8L8Fj0snFDnHjSOPuSED+1RgF wVNoPJgH2ZPQvl7euE5KXmNmM7eVsB1RqM8D7qBcwOIdb6ixEK6RC6Sp01jtt/f0KyLD 9EG60okyXJGQExVvWUTEorld49djctqZwxzN9vu3ar9K++o6T3NwAx1fjEDbzBmAf0RA Z0qQ== X-Gm-Message-State: ALoCoQlk4mttycMqc7UfT/IHaRh+vjjaLeP9F4eaXCMnCauj5wstDK+uESXUanQkz5mVuy2ebkh6 X-Received: by 10.152.29.97 with SMTP id j1mr2117811lah.3.1425048798083; Fri, 27 Feb 2015 06:53:18 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.48 with SMTP id t16ls166441lal.55.gmail; Fri, 27 Feb 2015 06:53:17 -0800 (PST) X-Received: by 10.152.116.18 with SMTP id js18mr12982160lab.106.1425048797909; Fri, 27 Feb 2015 06:53:17 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id er5si3145057lac.11.2015.02.27.06.53.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 06:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labgq15 with SMTP id gq15so18123088lab.3 for ; Fri, 27 Feb 2015 06:53:17 -0800 (PST) X-Received: by 10.112.162.167 with SMTP id yb7mr12609836lbb.76.1425048797743; Fri, 27 Feb 2015 06:53:17 -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 h5csp3990186lbj; Fri, 27 Feb 2015 06:53:17 -0800 (PST) X-Received: by 10.140.218.202 with SMTP id o193mr30365927qhb.13.1425048796504; Fri, 27 Feb 2015 06:53:16 -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 a93si4216506qge.86.2015.02.27.06.53.15 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Feb 2015 06:53:16 -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 1YRMHx-0006fq-Aq; Fri, 27 Feb 2015 14:53:13 +0000 Received: from mail-qg0-f43.google.com ([209.85.192.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YRMHg-0006dd-PI for lng-odp@lists.linaro.org; Fri, 27 Feb 2015 14:52:56 +0000 Received: by mail-qg0-f43.google.com with SMTP id i50so14452344qgf.2 for ; Fri, 27 Feb 2015 06:52:51 -0800 (PST) X-Received: by 10.55.52.146 with SMTP id b140mr551322qka.43.1425048771622; Fri, 27 Feb 2015 06:52:51 -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 h8sm2735212qaq.44.2015.02.27.06.52.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Feb 2015 06:52:50 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 27 Feb 2015 09:52:34 -0500 Message-Id: <1425048757-28438-5-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425048757-28438-1-git-send-email-mike.holmes@linaro.org> References: <1425048757-28438-1-git-send-email-mike.holmes@linaro.org> MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] =?utf-8?q?=5BPATCH_v5_5/8=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.44 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 f0b47cb..d062a72 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