[Nut-upsdev] Finding libusb on FreeBSD 8.0

Daniel O'Connor doconnor at gsoft.com.au
Fri Dec 25 01:02:19 UTC 2009


On Fri, 25 Dec 2009, Arjen de Korte wrote:
> Citeren Charles Lepple <clepple at gmail.com>:
> > There also seems to be an issue finding uu_lock, but that probably
> > just needs to include sys/types.h first.
>
> This seems to be a badly broken <libutil.h> header in FreeBSD 8.0. If
> the stuff in <libutil.h> needs <sys/types.h> for it's type
> definitions, this header should be #include'd in <libutil.h>, not
> rely upon the compiler to do it for you. This used to work in FreeBSD
> 6.4. I would say this is a FreeBSD bug.

It is a standard FreeBSD philosophy to make the programmer explicitly 
include a header required by another header (subject to certain 
historical things).. 

The idea being that the programmer explicitly knows what they are 
getting.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20091225/1471e414/attachment.pgp>


More information about the Nut-upsdev mailing list