From patchwork Fri Apr 25 12:14:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 29064 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBBE6203AC for ; Fri, 25 Apr 2014 12:15:40 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf11099720qac.4 for ; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) 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:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=oTeMSDlYO9c7buCLPr99JY2G1drH2tqtbNLrGzOI9mI=; b=NIB8gLogzpKVcf6EpGRUctIU4A6gbr3SmURc4tta69ocmDiwQbHknxDg5C1ZCwNVur YijWvTCF14eiw1DVE8t6KW5nbxyvkSo9dYPSbnXM1e7KYAOamcj0dNh658629AsCRwGt 8uHh0jkPmxisED79i5yw7XaaUI/+U8OcsHQ9Wfp7WsfplYZnFbVdW+MHIoRyU9WwexBG Oz+LqDmIXngiu5gfD5Lzm5L7uU0SHM5UyuDAEpSPiQQL8gi/yWssvrgeoYFgKBARhTs8 RZ9RsewoAZOb1UPIKoMrnCHPYP1YxfL9gNJ41zD8aDfYl/LcWZ39TBoGLmzPHJgjdoWV i/wQ== X-Gm-Message-State: ALoCoQmOS0nXpbU+oUJmwcpRcNHNzkSr0VI6Qq7uvmLqNbTv7/L8y53ssMqJBvYhA0C2lZKkQcvN X-Received: by 10.58.127.66 with SMTP id ne2mr4107999veb.27.1398428140594; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.119 with SMTP id 110ls1512404qgu.20.gmail; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr6571353vcx.7.1398428140464; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id tv3si1655510vdc.18.2014.04.25.05.15.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:40 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id jy13so4659926veb.30 for ; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr294614vcm.34.1398428140399; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) 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.220.221.72 with SMTP id ib8csp92997vcb; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) X-Received: by 10.140.19.212 with SMTP id 78mr10452077qgh.84.1398428140023; Fri, 25 Apr 2014 05:15:40 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id z8si3707093qar.111.2014.04.25.05.15.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:40 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wdf2B-0006ga-HC; Fri, 25 Apr 2014 12:15:15 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Wdf1y-0006cA-EJ for lng-odp@lists.linaro.org; Fri, 25 Apr 2014 12:15:02 +0000 Received: by mail-la0-f43.google.com with SMTP id c6so3016709lan.16 for ; Fri, 25 Apr 2014 05:15:20 -0700 (PDT) X-Received: by 10.112.47.3 with SMTP id z3mr5288632lbm.34.1398428120158; Fri, 25 Apr 2014 05:15:20 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id bm3sm7963683lbb.12.2014.04.25.05.15.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 05:15:19 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 25 Apr 2014 14:14:35 +0200 Message-Id: <1398428077-32199-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398428077-32199-1-git-send-email-anders.roxell@linaro.org> References: <1398428077-32199-1-git-send-email-anders.roxell@linaro.org> Subject: [lng-odp] [PATCH 2/4] linux-generic:odp_shared_memory:MAP_ANON -std=c99 compatible 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: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 Signed-off-by: Anders Roxell --- platform/linux-generic/source/odp_shared_memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/source/odp_shared_memory.c b/platform/linux-generic/source/odp_shared_memory.c index 8288b46..784f42b 100644 --- a/platform/linux-generic/source/odp_shared_memory.c +++ b/platform/linux-generic/source/odp_shared_memory.c @@ -12,9 +12,7 @@ #include #include -#ifdef __powerpc__ #include -#endif #include #include @@ -42,6 +40,10 @@ typedef struct { } odp_shm_table_t; +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + #define SHM_FLAGS (MAP_SHARED | MAP_ANONYMOUS)