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

List:       kde-devel
Subject:    Re: kdebase-CVS: konsole compile-error
From:       Fritz Elfert <felfert () to ! com>
Date:       2001-06-14 22:35:13
[Download RAW message or body]


Symbols starting with __ are NOT intended to be defined by the user.
Use _XOPEN_SOURCE instead. Have a look into features.h for more
info how that works.

Ciao
 -Fritz

On Thu, 14 Jun 2001, Thorsten Schnebeck wrote:

> Am Donnerstag, 14. Juni 2001 15:31 schrieb Thorsten Schnebeck:
>
> > I have problems compiling current kdebase-CVS:
> [...]
> > TEPty.C:320: implicit declaration of function `int ptsname(...)'
> > TEPty.C:320: initialization to `char *' from `int' lacks a cast
>
> To solve my own problem:
>
> functions like ptsname are part of <stdlib.h> but only if the parameter
> __USE_XOPEN is #defined. I use here GNU/Linux glib 2.2.2 and headers
> selfcompiled. For unknown reasons is __USE_XOPEN _not_ defined so I forced
> this by putting
>
> #if !defined(__USE_XOPEN)
> #define __USE_XOPEN
> #endif
>
> into konsole/src/TEPty.C
>
> There was never such a problem in the past. This parameter should be
> triggered by a ./configure, or?
>
> Bye
>
>   Thorsten
>
> >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
>

-- 
Fritz Elfert <felfert AT to.com>            Thinking Objects Software GmbH
--------------------------------------------------------------------------

 
>> Visit http://master.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