From patchwork Fri Jan 9 20:17: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: 42915 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9FBEE26CF1 for ; Fri, 9 Jan 2015 20:18:28 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id z12sf5647780lbi.2 for ; Fri, 09 Jan 2015 12:18:27 -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:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=BTT4ZKQYxldVZLlPnXGmyoNUh6ZRUA8tkYSgAEQpS68=; b=YxzGI6bQ1UQO/i5LJILocucQumCi0Jg09s+xu1Kqsh8L6OVUuX3LtyuLuRidcv8vXx iN5DEEDisVUCxi1tHRabpdKt1vnmXM2wwRuZQoNH7e/ldojHdmVb8QrolQXa+PZ4ea2D NTFQLcYTcCk3Fqk50Fwa/YNoU5aS2GUAmV+yBNQM3sLXoWUfiETs4WOhqJVxlVQnNPG4 p2eFHVIW1+js9nfujkvowL8aWJN0kzSxMVRInZjYkEwLpfTt9MsGmT5VJVfxBNCCGw8A 7L/m54X49AszI+fgqp7+gF+elEPIcKH9oogAHPf2DQRR5iMkcSo7d9W1Z2DpwSE4EP+0 4d2Q== X-Gm-Message-State: ALoCoQmlhqe4rSfFT5KFr0diww32Vu6MKXO3PTRsz74SB8jc45StrNRZl80z8MF7v0EfzauqeBld X-Received: by 10.180.7.226 with SMTP id m2mr643230wia.5.1420834707192; Fri, 09 Jan 2015 12:18:27 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.132 with SMTP id lc4ls467538lab.1.gmail; Fri, 09 Jan 2015 12:18:27 -0800 (PST) X-Received: by 10.113.11.12 with SMTP id ee12mr23391638lbd.79.1420834707030; Fri, 09 Jan 2015 12:18:27 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id jq17si14146274lab.78.2015.01.09.12.18.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 12:18:26 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id u14so9898126lbd.9 for ; Fri, 09 Jan 2015 12:18:26 -0800 (PST) X-Received: by 10.112.30.71 with SMTP id q7mr23657148lbh.41.1420834706838; Fri, 09 Jan 2015 12:18:26 -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.9.200 with SMTP id c8csp441283lbb; Fri, 9 Jan 2015 12:18:25 -0800 (PST) X-Received: by 10.140.42.166 with SMTP id c35mr28193925qga.42.1420834705260; Fri, 09 Jan 2015 12:18:25 -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 j4si13450815qaz.130.2015.01.09.12.18.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 09 Jan 2015 12:18:25 -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 1Y9g0j-00086L-Op; Fri, 09 Jan 2015 20:18:21 +0000 Received: from mail-qa0-f41.google.com ([209.85.216.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y9g0d-00084W-9z for lng-odp@lists.linaro.org; Fri, 09 Jan 2015 20:18:15 +0000 Received: by mail-qa0-f41.google.com with SMTP id bm13so880150qab.0 for ; Fri, 09 Jan 2015 12:18:10 -0800 (PST) X-Received: by 10.229.93.132 with SMTP id v4mr30339545qcm.27.1420834690096; Fri, 09 Jan 2015 12:18:10 -0800 (PST) Received: from localhost.localdomain ([98.221.136.245]) by mx.google.com with ESMTPSA id g60sm7887822qgg.39.2015.01.09.12.18.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Jan 2015 12:18:09 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 9 Jan 2015 15:17:56 -0500 Message-Id: <1420834676-28272-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: shared mem: Add _POSIX_C_SOURCE 200809L 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: , MIME-Version: 1.0 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.178 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 Fixes https://bugs.linaro.org/show_bug.cgi?id=787 Adding _POSIX_C_SOURCE 200809L allows compilation to std=c99 by adding ftruncate from this standard. Signed-off-by: Mike Holmes Reviewed-by: Bill Fischofer --- platform/linux-generic/odp_shared_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index abf6da3..99c5b40 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -4,6 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ +/*ftruncate _POSIX_C_SOURCE 200809L */ +#define _POSIX_C_SOURCE 200809L + #include #include #include