NetBSD Problem Report #51889

From www@NetBSD.org  Sun Jan 15 20:50:37 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C1CA17A2A1
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Jan 2017 20:50:37 +0000 (UTC)
Message-Id: <20170115205031.3B7937A2BE@mollari.NetBSD.org>
Date: Sun, 15 Jan 2017 20:50:31 +0000 (UTC)
From: yaneurabeya@gmail.com
Reply-To: yaneurabeya@gmail.com
To: gnats-bugs@NetBSD.org
Subject: [PATCH] tests/lib/libpthread/t_sem: add sys/time.h #include
X-Send-Pr-Version: www-1.0

>Number:         51889
>Category:       bin
>Synopsis:       [PATCH] tests/lib/libpthread/t_sem: add sys/time.h #include
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 15 20:55:00 +0000 2017
>Closed-Date:    Mon Jan 16 18:33:19 +0000 2017
>Last-Modified:  Mon Jan 16 18:33:19 +0000 2017
>Originator:     Ngie Cooper
>Release:        7.0.2
>Organization:
>Environment:
n/a
>Description:
sys/time.h is needed for ITIMER_* #defines -- it's picked up on NetBSD via header pollution somehow.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/51889: [PATCH] tests/lib/libpthread/t_sem: add sys/time.h
 #include
Date: Sun, 15 Jan 2017 12:58:43 -0800

 --Apple-Mail=_40C400DB-11DB-4873-8598-09B23B48E07E
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii

 Patch attached.
 -Ngie

 --Apple-Mail=_40C400DB-11DB-4873-8598-09B23B48E07E
 Content-Disposition: attachment;
 	filename=libpthread-t_sem-add-sys-time_h.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="libpthread-t_sem-add-sys-time_h.patch"
 Content-Transfer-Encoding: 7bit

 Index: lib/libpthread/t_sem.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libpthread/t_sem.c,v
 retrieving revision 1.8
 diff -u -r1.8 t_sem.c
 --- lib/libpthread/t_sem.c	4 Nov 2014 00:20:19 -0000	1.8
 +++ lib/libpthread/t_sem.c	15 Jan 2017 20:53:36 -0000
 @@ -88,6 +88,7 @@
   The NetBSD Foundation, inc. All rights reserved.");
  __RCSID("$NetBSD: t_sem.c,v 1.8 2014/11/04 00:20:19 justin Exp $");

 +#include <sys/time.h>
  #include <errno.h>
  #include <fcntl.h>
  #include <pthread.h>

 --Apple-Mail=_40C400DB-11DB-4873-8598-09B23B48E07E--

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51889 CVS commit: src/tests/lib/libpthread
Date: Mon, 16 Jan 2017 11:22:22 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Mon Jan 16 16:22:22 UTC 2017

 Modified Files:
 	src/tests/lib/libpthread: t_sem.c

 Log Message:
 PR/51889: Ngie Cooper: add sys/time.h


 To generate a diff of this commit:
 cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libpthread/t_sem.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 16 Jan 2017 18:33:19 +0000
State-Changed-Why:
christos committed it. thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.