pkgsrc-Bugs archive

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

Re: pkg/52390: current fails to bootstrap on CentOS 6



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

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
	pkgsrc-bugs%netbsd.org@localhost, bacon4000%gmail.com@localhost
Cc: 
Subject: Re: pkg/52390: current fails to bootstrap on CentOS 6
Date: Thu, 13 Jul 2017 09:22:26 -0400

 On Jul 13, 12:55pm, coypu%sdf.org@localhost (coypu%sdf.org@localhost) wrote:
 -- Subject: Re: pkg/52390: current fails to bootstrap on CentOS 6
 
 | The following reply was made to PR pkg/52390; it has been noted by GNATS.
 | 
 | From: coypu%sdf.org@localhost
 | To: gnats-bugs%NetBSD.org@localhost
 | Cc: 
 | Subject: Re: pkg/52390: current fails to bootstrap on CentOS 6
 | Date: Thu, 13 Jul 2017 12:54:14 +0000
 | 
 |  newer glibc no longer does this.
 |  
 |  2012-04-11  Jim Meyering  <meyering%redhat.com@localhost>
 |  
 |  	[BZ #11959]
 |  	* libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
 |  	It is not necessarily an error to ignore fwrite's return
 |  	value.  One can reliably use ferror to test for errors after
 |  	the fact.
 |  
 |  What to do about older?
 
 There are ugly solutions...
 
 in a header file:
 
 #undef fwrite
 
 static inline size_t
 fwrite_checked(const void * restrict ptr, size_t size, size_t nmemb,
     FILE * restrict stream)
 {
 	size_t nw = fwrite(ptr, size, nmemb, stream);
 	assert(nw == nmemb);
 	return nw;
 }
 
 #define fwrite(a, b, c, d) fwrite_checked((a), (b), (c), (d))
 
 
 christos
 


Home | Main Index | Thread Index | Old Index