From owner-freebsd-stable@FreeBSD.ORG Tue Nov 24 14:53:41 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74FA71065672 for ; Tue, 24 Nov 2009 14:53:41 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 05CEF8FC19 for ; Tue, 24 Nov 2009 14:53:40 +0000 (UTC) Received: by bwz5 with SMTP id 5so6462219bwz.3 for ; Tue, 24 Nov 2009 06:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:organization:from :date:message-id:user-agent:mime-version:content-type; bh=QAcFdS+EcWB/O5rE7qWePa8lGdJmp062iLToeis7Rcs=; b=Y/MDkYPftk9iB1eqTm2Lw4dbam0++A2A7nLvh/BF1sk40vR7bjwV+jebX8HB+xqe2a xA/CYfoA43KNCx6mpMl0RgJPPLlFq8/x1qlA7Q0+0hvk0IZKr26dNKqaPgbE8HuXakqW Z+Euu47rtzfLbSd6vYGk0TQ3QN66B0e6QCAPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:organization:from:date:message-id:user-agent :mime-version:content-type; b=u69v7sSm5slz8d7YKXvQ02baBtu7HMZuZJsX0vWwmK2cxGSUDCHbZ0dtwb0kxDuGB4 gIXK0BXqepEgeM91OJmAqXsDWISgI2om4wOAgIRRo5byfLEBwGdbkujgBgPTqsX02O9E 3qf0XsNak8TwRnEkvU/4RnC1FUTkIR7gt791c= Received: by 10.204.154.209 with SMTP id p17mr5926027bkw.104.1259074419180; Tue, 24 Nov 2009 06:53:39 -0800 (PST) Received: from localhost (ms.singlescrowd.net [80.85.90.67]) by mx.google.com with ESMTPS id 14sm1421096bwz.9.2009.11.24.06.53.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Nov 2009 06:53:37 -0800 (PST) To: FreeBSD Stable Organization: TOA Ukraine From: Mikolaj Golub Date: Tue, 24 Nov 2009 16:53:35 +0200 Message-ID: <86aayc7z4g.fsf@zhuzha.ua1> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2009 14:53:41 -0000 Hi, I have problems with compiling our application under 8.0. It fails due to these definitions in pthread.h that look like a typo or incorrectly applied patch: 170 #define pthread_cleanup_push(cleanup_routine, cleanup_arg) \ 171 { \ 172 struct _pthread_cleanup_info __cleanup_info__; \ 173 __pthread_cleanup_push_imp(cleanup_routine, cleanup_arg,\ 174 &__cleanup_info__); \ 175 { 176 177 #define pthread_cleanup_pop(execute) \ 178 } \ 179 __pthread_cleanup_pop_imp(execute); \ 180 } This patch fixes the problem for me: --- pthread.h.orig 2009-11-24 16:44:13.000000000 +0200 +++ pthread.h 2009-11-24 16:44:45.000000000 +0200 @@ -172,10 +172,10 @@ struct _pthread_cleanup_info __cleanup_info__; \ __pthread_cleanup_push_imp(cleanup_routine, cleanup_arg,\ &__cleanup_info__); \ - { + } #define pthread_cleanup_pop(execute) \ - } \ + { \ __pthread_cleanup_pop_imp(execute); \ } -- Mikolaj Golub