NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51840: [PATCH] tests/lib/libc/sys/t_write: portability fixes for FreeBSD, etc



The following reply was made to PR bin/51840; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51840: [PATCH] tests/lib/libc/sys/t_write: portability fixes
 for FreeBSD, etc
Date: Thu, 12 Jan 2017 21:02:54 -0800

 --Apple-Mail=_18E02C6B-3010-457C-BA3D-F6968A88FE2A
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 -Ngie
 
 --Apple-Mail=_18E02C6B-3010-457C-BA3D-F6968A88FE2A
 Content-Disposition: attachment;
 	filename*0=lib-libc-sys-t_write-use-limits_h-add-__unused-to-sighandler.pat;
 	filename*1=ch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="lib-libc-sys-t_write-use-limits_h-add-__unused-to-sighandler.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: lib/libc/sys/t_write.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/t_write.c,v
 retrieving revision 1.2
 diff -u -r1.2 t_write.c
 --- lib/libc/sys/t_write.c	19 Oct 2011 16:19:30 -0000	1.2
 +++ lib/libc/sys/t_write.c	13 Jan 2017 04:43:48 -0000
 @@ -32,11 +32,11 @@
  __RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $");
  
  #include <sys/uio.h>
 -#include <sys/syslimits.h>
  
  #include <atf-c.h>
  #include <errno.h>
  #include <fcntl.h>
 +#include <limits.h>
  #include <signal.h>
  #include <stdio.h>
  #include <stdint.h>
 @@ -49,7 +49,7 @@
  static const char	*path = "write";
  
  static void
 -sighandler(int signo)
 +sighandler(int signo __unused)
  {
  	fail = false;
  }
 
 --Apple-Mail=_18E02C6B-3010-457C-BA3D-F6968A88FE2A--
 


Home | Main Index | Thread Index | Old Index