From patchwork Sat Sep 13 11:39:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 388891 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 77ED11400B2 for ; Sat, 13 Sep 2014 21:39:33 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=M1rfYOGh9Alse645KsrsqImEs2vsB aXXCekHgvN0ctaWN5dD1DfkRSunK+qYWaWkn9aqjL7GXR8ArJnPsE09k+qg87Bga UhaQoFQQY3m6TCEaXA6zdKDIkvzikhkXTctUtHeYKWMQ2Vx4xsoME3uNtrcmwTZz BQ+rm+3wCUXSyI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=qXbeGBRu6qxM1K75K2F/5gFUPOY=; b=SC8 1w2jjT0Y9DG1HiQUI3RBMfI/wUGkRZNVsFiPs7RgiZyG43ZKdNXDHtdGU7U558yY fvjJGSih5jKetX2UIIzVtBev4QC1Qu1E7GZnaItQlQlGMDt2CFnm/2S5PAij9Mg3 yGbHzKG3ZkvMhRVaFbK6P4v98IrlstKJ5KAdBn/0= Received: (qmail 2348 invoked by alias); 13 Sep 2014 11:39:26 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2333 invoked by uid 89); 13 Sep 2014 11:39:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=no version=3.3.2 X-HELO: helium.waldemar-brodkorb.de Date: Sat, 13 Sep 2014 13:39:19 +0200 From: Waldemar Brodkorb To: libc-alpha@sourceware.org Subject: [PATCH] sparc: fix for missing include file Message-ID: <20140913113918.GA22732@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Fix idea from Roland McGrath Fixes following compile error targeting sparc32 v8 ../sysdeps/sparc/sparc32/sem_trywait.c: In function '__new_sem_trywait': ../sysdeps/sparc/sparc32/sem_trywait.c:35:11: error: dereferencing pointer to incomplete type if (isem->value > 0) ^ In file included from ../include/list.h:45:0, from ../sysdeps/sparc/nptl/tls.h:28, from ../include/errno.h:27, from ../sysdeps/sparc/sparc32/sem_trywait.c:20: ../sysdeps/sparc/sparc32/sem_trywait.c:38:43: error: dereferencing pointer to incomplete type val = atomic_decrement_if_positive (&isem->value); ^ ../include/atomic.h:372:18: note: in definition of macro Signed-off-by: Waldemar Brodkorb --- sysdeps/sparc/sparc32/sem_trywait.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/sparc/sparc32/sem_trywait.c b/sysdeps/sparc/sparc32/sem_trywait.c index 7d0fc55..ad9b4ad 100644 --- a/sysdeps/sparc/sparc32/sem_trywait.c +++ b/sysdeps/sparc/sparc32/sem_trywait.c @@ -22,6 +22,7 @@ #include #include #include +#include #include