2011/7/6 Hector Oron <[email protected]>:
> Hello,
>
>  When building gdb on BSD architectures I encounter this warn/error:
>
> In file included from /usr/include/kvm.h:38:0,
> ....
> /usr/include/nlist.h:33:2: error: #warning "Deprecated header, use
> <bsd/nlist.h> or libbsd-overlay.pc instead." [-Werror=cpp]

IMHO headers in libkvm and other freebsd libraries should be more
portable.  That is, unless we want to make libbsd-overlay a
requirement for using them.

How about something like:

#ifdef BSD
#include <nlist.h> // assume BSD version
#else
#include <bsd/nlist.h> // assume libbsd is installed
#endif

-- 
Robert Millan


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/CAOfDtXMpC_R0eH8RBp9p1epfkzbYM=7ou3veqzfnbma7j62...@mail.gmail.com

Reply via email to