<sys/conf.h> should not be included from userland, and if it is
a proper interface should be designed and used instead.


In message <[EMAIL PROTECTED]>, Sheldon Hearn writes:
>Hi Poul-Henning,
>As of rev 1.116 of sys/sys/conf.h, the xosview port no longer builds.
>Your delta added 3 struct timespec members to struct specinfo.
>The affected xosview file includes the following headers files in
>#include <sys/param.h>
>#include <sys/conf.h>
>The breakage looks like this:
>In file included from swapinternal.cc:67:
>/usr/include/sys/conf.h:59: field `si_atime' has incomplete type
>/usr/include/sys/conf.h:60: field `si_ctime' has incomplete type
>/usr/include/sys/conf.h:61: field `si_mtime' has incomplete type
>Including <sys/time.h> between the inclusion of <sys/param.h> and
><sys/conf.h> corrects the problem.
>Was this use of <sys/conf.h> always broken and only now problematic, or
>is there a new problem in <sys/conf.h>?
>To me, it looks like <sys/conf.h> should pull <sys/time.h> in for
>itself, although I understand that pollution comes along with that.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to