From patchwork Tue Dec 8 23:11:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 57912 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp328084lbb; Tue, 8 Dec 2015 15:12:10 -0800 (PST) X-Received: by 10.140.140.72 with SMTP id 69mr8562176qhm.60.1449616329992; Tue, 08 Dec 2015 15:12:09 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c1si5830206qkh.3.2015.12.08.15.12.09; Tue, 08 Dec 2015 15:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 5CC8A61FA5; Tue, 8 Dec 2015 23:12:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 2804761D8C; Tue, 8 Dec 2015 23:12:05 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2A01661F9C; Tue, 8 Dec 2015 23:12:03 +0000 (UTC) Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by lists.linaro.org (Postfix) with ESMTPS id 764FE618E0 for ; Tue, 8 Dec 2015 23:12:02 +0000 (UTC) Received: by qgcc31 with SMTP id c31so43346700qgc.3 for ; Tue, 08 Dec 2015 15:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IT5EraBbygQHxca3zoC0O7FoTYCay+NKmJb60nQuZT4=; b=0pZX0UJvRdeqfVF3QQgMd3YWemmaLHffNBTqTOZ2BEBhdBoEQ1MjofIzuGYK4NKfPZ DLshKEVP7C8Zhvaj095tImLyOuwIJoN95aNsBclba2Z5zjD+wbyR1uZBANywpKUItnkT MrcvK5KFpWDhFmgVJIxVjuNLBq+B9RPSGGVEcRmHKCxFIGkxeW7m7b0+jkGkbfSUYPit t6OfINWADoFbAxN+3Dt8sak6bQ4PtHH/1BneZEg6O9EhAoYyT9g2PTydJvRy5wOO13xM l3W+VsDXadfHQUqOe9Pmg3m2854DBRDdkI13t9jiI95M3+fPhWTg6cOiP4fBKZ3QMuG3 kY5w== 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; bh=IT5EraBbygQHxca3zoC0O7FoTYCay+NKmJb60nQuZT4=; b=SoegRt6fwVtBCLfwfbwwM4FHm2CYUnpfk8131SX5HAOb1SwkYdNkPN2ZgybhI8pFV4 IEjnt3+vQMJ1FKmO68E5ZzRv0oXlz6I1dnlpSeNO333BcDcFdsLA/1Crn9w9oz67+EaM 6RO+ZjxLwFDNyvXFX5GkdVvTDRPvfWNRwCCTZ/Am8wZ0thD4H2rXTTRahT4oNiVtUh+a ycBydqsy4TnSeGOcsfm+gBtj48SR4ReK2qlAo6ZB7bL44uR/x9oVsTuu1i08NDI7yGNs 984DPt0YyYwTtOUo1/gYG84YczVE3Xp1YkTRFFgXg2lzJM49IaIx9xqM4mCp7rYW/vU+ bJpA== X-Gm-Message-State: ALoCoQkuuldqGkZhD5/3rYZQgNiaKaYULWuhP8DOPS/leiDXhv3GG1/kwaaQXar14C3LM9AjwJO4wNUSvRwcUGTfN5yIJumYMA== X-Received: by 10.140.159.206 with SMTP id f197mr8606400qhf.72.1449616322271; Tue, 08 Dec 2015 15:12:02 -0800 (PST) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id e31sm2551254qge.11.2015.12.08.15.12.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Dec 2015 15:12:01 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 8 Dec 2015 18:11:56 -0500 Message-Id: <1449616316-14721-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.5.0 Subject: [lng-odp] [API-NEXT] add _POSIX_C_SOURCE 200809 to fix build X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" fixes api-next CC odp_schedule.lo odp_schedule.c: In function 'schedule_loop': odp_schedule.c:589:13: error: storage size of 'next' isn't known odp_time_t next, wtime; ^ Signed-off-by: Mike Holmes --- platform/linux-generic/odp_schedule.c | 2 ++ test/performance/odp_pktio_perf.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 3017876..c163634 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#define _POSIX_C_SOURCE 200809L + #include #include #include diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index 8737bc8..59a1007 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -20,6 +20,9 @@ * a single packet rate can be specified on the command line. * */ + +#define _POSIX_C_SOURCE 200809L + #include #include