From patchwork Fri Feb 20 21:44:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 44880 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21B8621561 for ; Fri, 20 Feb 2015 21:45:35 +0000 (UTC) Received: by eekc41 with SMTP id c41sf4647788eek.1 for ; Fri, 20 Feb 2015 13:45:34 -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=qXsYyMrRKDrfrSkGU3bVvyiGAj8GPU8nlfFSrYp/lAo=; b=D9EjTzPPTt9ko1epRBEO7GariLdWGMEkjWtEsOrHe6B1/CJYgxDB75rwRyDaCc3NsH ryFDvNnJz/fjxPE+n7I/7ifAzZ9Nbj6uOfMOO5+iOxuLeRW18N7OFwubqfuKpRnvam0p iAF8Jaj66szqw7SzThZ/rHSMizc/EWrpx0Wx7kJ8JxyKQDLT0eeA3k4WboLZcpDGDS3u 6ChK4ID+lM18p5Usn/ROtGIl0+yu3j8kyOA2SpzNZGVfmfLk05EcCr3h4hB6e36Jzo1U zNjKZEtLewmafgnWdzDmqtkOJIVWq80yodNI7yL+pGnH9qG4JjNW5pNGMOQ0xBrn2HEF MplA== X-Gm-Message-State: ALoCoQkxtACJ1hdIc0zU+wwvqPzs9JGEbsiHB5iXR++qeud+Eqx2f6Q3FBFG0mmxeStLzGbPaF1B X-Received: by 10.112.131.106 with SMTP id ol10mr1574138lbb.20.1424468734289; Fri, 20 Feb 2015 13:45:34 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.40 with SMTP id q8ls340027lag.29.gmail; Fri, 20 Feb 2015 13:45:34 -0800 (PST) X-Received: by 10.112.163.229 with SMTP id yl5mr4970982lbb.60.1424468734059; Fri, 20 Feb 2015 13:45:34 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id z1si3515232laz.80.2015.02.20.13.45.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Feb 2015 13:45:34 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbjb6 with SMTP id b6so8807326lbj.12 for ; Fri, 20 Feb 2015 13:45:34 -0800 (PST) X-Received: by 10.152.116.18 with SMTP id js18mr130684lab.106.1424468733978; Fri, 20 Feb 2015 13:45:33 -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 h5csp141896lbj; Fri, 20 Feb 2015 13:45:33 -0800 (PST) X-Received: by 10.140.145.12 with SMTP id 12mr29024385qhr.51.1424468732715; Fri, 20 Feb 2015 13:45:32 -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 c6si29267291qgf.105.2015.02.20.13.45.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Feb 2015 13:45:32 -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 1YOvO5-0005QX-C0; Fri, 20 Feb 2015 21:45:29 +0000 Received: from mail-qc0-f178.google.com ([209.85.216.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOvNL-0005Hi-SB for lng-odp@lists.linaro.org; Fri, 20 Feb 2015 21:44:43 +0000 Received: by qcxr5 with SMTP id r5so3042443qcx.13 for ; Fri, 20 Feb 2015 13:44:38 -0800 (PST) X-Received: by 10.140.97.38 with SMTP id l35mr10897217qge.47.1424468678719; Fri, 20 Feb 2015 13:44:38 -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 t8sm19659303qga.24.2015.02.20.13.44.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 13:44:38 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 20 Feb 2015 16:44:19 -0500 Message-Id: <1424468661-967-12-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424468661-967-1-git-send-email-mike.holmes@linaro.org> References: <1424468661-967-1-git-send-email-mike.holmes@linaro.org> MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] =?utf-8?q?=5BPATCH_10/12=5D_example=3A_odp=5Fl2fwd=3A_f?= =?utf-8?q?ix_c99_implicit_declaration_of_function_=E2=80=98strtok?= =?utf-8?b?X3LigJk=?= 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.217.177 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_l2fwd.c:497:5: error: implicit declaration of function ‘strtok_r’ [-Werror=implicit-function-declaration] token = strtok_r(str, ",", &save); Signed-off-by: Mike Holmes --- example/l2fwd/odp_l2fwd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/l2fwd/odp_l2fwd.c b/example/l2fwd/odp_l2fwd.c index 0326a3c..848c6cf 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