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

Re: gdb on bsd architectures



2011/7/6 Hector Oron <hector.oron@gmail.com>:
> 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


Reply to: