gnokii-users
[Top][All Lists]
Advanced

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

Re: gnokii can be compiled on solaris


From: BORBELY Zoltan
Subject: Re: gnokii can be compiled on solaris
Date: Thu, 18 Apr 2002 02:14:24 +0200
User-agent: Mutt/1.2.5.1i

Hi,

On Wed, Apr 17, 2002 at 07:33:28PM +1000, Marcus Pallinger wrote:
> > > misc.h lines 150-153:
> > > #if (!defined _BSD_SOURCE) && (!defined _BSDTYPES_DEFINED)
> > >         typedef unsigned char u_char;
> > > #endif
> > > Sounds like this is another candidate for autoconfing...
> > No, no. I meant defines in your system types.h. I know the contents oth the 
> > misc.h ;-)
> 
> Ahhh.. It's wrapped in:
> #if defined(__EXTENSIONS__) || \
>         (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE))
> ...
> #endif  /* defined(__EXTENSIONS__) || (!defined(_POSIX_C_SOURCE) && ... */
> 
> > But agree. It is the candidate for the autoconf.
> 
> I would do it, but autoheader seems to not like either
> 
> AC_CHECK_TYPE(u_char)
> or 
> AC_CHECK_TYPE(u_char, AC_DEFINE(HAVE_U_CHAR))

IMHO we cannot autoconf u_char easily. The main problem is we have to
define _XOPEN_SOURCE for some platform and it disables u_char on
another. We should unify our defines first. So I just dropped this u_char
thing out. Only linuxirda.h depends on it, so I fixed it too.

It can compile on Linux, FreeBSD 4.5 (I had no X, so I had to --without-x)
and Solaris 9. But killing u_char just killed OpenBSD :-( We talked about
this issue with Pawel on irc, maybe there are an ugly but working solution.

Bye,
Bozo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]