bin/150772: csup should include limits.h instead of sys/limits.h

Bruce Evans brde at optusnet.com.au
Tue Sep 21 10:00:14 UTC 2010


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

From: Bruce Evans <brde at optusnet.com.au>
To: Derrick Brashear <shadow at gmail.com>
Cc: freebsd-gnats-submit at FreeBSD.org, freebsd-bugs at FreeBSD.org
Subject: Re: bin/150772: csup should include limits.h instead of sys/limits.h
Date: Tue, 21 Sep 2010 18:24:49 +1000 (EST)

 On Tue, 21 Sep 2010, Derrick Brashear wrote:
 
 >> Description:
 > All but one inclusion of limits.h use the portable (/usr/include) header path; One uses sys/limits.h, which is included by limits.h.
 
 I wonder if we could properly break unportable includers.  In this case,
 maybe use one of:
 
 A. Don't install <sys/limits.h>.  Requires some reorganization, since
     <limits.h> incudes it now.
 B. #error if <sys/limits.h> is included by anything except <limits.h>
     outside of the kernel.
 
 Bruce


More information about the freebsd-bugs mailing list