[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kdepim/config.h.bot & Solaris (& Tru64)
From:       kde-devel () thewrittenword ! com
Date:       2001-10-11 16:25:43
[Download RAW message or body]

On Thu, Oct 11, 2001 at 04:21:15PM +0200, Adriaan de Groot wrote:
> The /subject file contains the following:
> 
> .. jpeg blabla
> #ifdef __osf__
> .. __FUNCTION__ blabla
> .. prototypes for getdomainname
> #endif

Gross.

> at least, it does in a 2.2 checkout. This hides the prototypes from all
> but Tru64, if I understand the preprocessor symbols correctly (I've seen
> Tom add #ifdef __osf__ here & there). Unfortunately, Sun Solaris (2.7 and
> 2.8) also need those prototypes. Unfortunately, it's not as simple as
> changing #ifdef __osg__ into
> 
> #if defined(__osf__) || defined(sun) || defined(__sun) || defined(__sun__)
> 
> since there's some other skullduggery going on, and my (Sun) unistd.h
> *does* define usleep, with a different prototype than the one in there.
> 
> Could this be standardised, or moved to kdefakes.h? (it seems we should
> have such a header, since linking to libkdefakes is pretty much 
> mandatory).

How about a *proper* autoconf test to get rid of the #ifdef mess.
Casing the OS is *not* what autoconf is about. It's just the
quick-and-dirty way.

-- 
albert chin (china@thewrittenword.com)
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic