From owner-freebsd-threads@FreeBSD.ORG Sun Mar 18 22:30:12 2012 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BC4E106566B for ; Sun, 18 Mar 2012 22:30:12 +0000 (UTC) (envelope-from gofdt-freebsd-threads@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 162608FC12 for ; Sun, 18 Mar 2012 22:30:11 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S9Obz-0002dY-BL for freebsd-threads@freebsd.org; Sun, 18 Mar 2012 23:30:03 +0100 Received: from 201.82.200.35 ([201.82.200.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2012 23:30:03 +0100 Received: from rakuco by 201.82.200.35 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Mar 2012 23:30:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-threads@freebsd.org From: Raphael Kubo da Costa Date: Sun, 18 Mar 2012 19:24:44 -0300 Lines: 18 Message-ID: <87haxlh7ir.fsf@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 201.82.200.35 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (berkeley-unix) Cancel-Lock: sha1:4FnQSORDdR471ZkTFLdswj6MD5Y= Cc: freebsd-standards@freebsd.org Subject: Should __clockid_t be used instead of clockid_t in pthread.h? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2012 22:30:12 -0000 Hi there. I'm trying to build an unstable glib version here, and one of their tests fails to build due to them #defining _POSIX_C_SOURCE to 0 and then #including , which produces the following error on my 8-STABLE machine: /usr/include/pthread.h:184: error: expected declaration specifiers or '...' before 'clockid_t' /usr/include/pthread.h:187: error: expected declaration specifiers or '...' before 'clockid_t' /usr/include/pthread.h:203: error: expected declaration specifiers or '...' before 'clockid_t' pthread.h gets its definition of clockid_t from time.h, but time.h only creates the typedef if __POSIX_VISIBLE is >= 199309. Using __clockid_t instead of clockid_t in the function prototypes works fine. Should the prototypes be changed? Thanks.