NetBSD-Bugs archive

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

Re: kern/46557: sys/syslog.h can't be compiled on its own with -D_KERNEL



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

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/46557: sys/syslog.h can't be compiled on its own with
 -D_KERNEL
Date: Sun, 11 Oct 2015 01:30:36 +0000

 On Sun, Oct 11, 2015 at 01:25:01AM +0000, David Holland wrote:
  >   >  > I don't think that such undertaking is worth-while
  >   >  
  >   >  This undertaking would be a huge time sink with no short-term gain, but
  >   >  there is long-term value:  You'd have code that is more
  >   >  readable/understandable by potential new contributors.
  >  
  >  Right.
 
 ...and actually the header cleanup is quite valuable because it
 disentangles the kernel and libc headers and institutes a clear
 interface.
 
 Anyway, adding sys/cdefs.h and sys/featuretest.h is harmless (and
 standard practice is to include sys/cdefs.h in every header that needs
 it) and the whole point of sys/ansi.h is that it's safe to include, so
 I think I'll go ahead and apply the patch.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index