[Licq-devel] Re: licq-daily snapshot don't build
Anders Olofsson <[email protected]> Wed, 02 Jul 2008 20:52:39 +0200
| Newsgroups | gmane.network.licq.devel |
|---|---|
| Message-ID | <[email protected]> |
Eugene Paskevich wrote: > > On Wed, 02 Jul 2008 13:33:56 +0300, Danil Y. Zagornov > <[email protected]> wrote: > >> On Wed, 2 Jul 2008 15:05:55 +0600 >> "Danil Y. Zagornov" <[email protected]> wrote: >> Hi >> I change >> char* inPtr = const_cast<char*>(array); >> to >> const char* inPtr = const_cast<char*>(array); >> in file translate.cpp and all builds without errors. > > Linux iconv declaration: > > size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char > **outbuf, size_t *outbytesleft); > > FreeBSD: > > size_t iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char > **outbuf, size_t *outbytesleft); > > We need some C Preprocessor way to detect the OS. > The iconv problem should be fixed now. I found the right way to cast it so it works for both syntaxes. I managed to get a shell account on a friends OpenBSD server so I've done a compile there and fixed a few other issues as well that I found (mostly unistd.h not being included everywhere it was needed). /Anders