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

List:       kde-devel
Subject:    Re: Porting KDE 2 (1.90) to other Unixes ...
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-05-10 18:50:45
[Download RAW message or body]

On Wed, May 10, 2000 at 08:39:44PM +0200, Thomas Leitner wrote:
> 
> Hi,
> 
> I've ported KDE 1.1.2 to Tru64 and thought I'd give 1.90 a try. While in
> 1.1.2 I took the quick & dirty approach in KDE 2 I want to make it better.
> 
> The first problem: Under Tru64, there's no "setenv" system call. In my
> 1.1.2 port, I used to work around this with something like this:
> 
> #define setenv(a, b, c) \
>         { char buf[8192]; sprintf(buf, "%s=%s", a, b); putenv(buf); }
> 
> The question: Is there an include file which is included by *ALL* KDE 
> source files where I can put such workarounds in order to avoid having
> to mess with each individual source file? It would also help to work
> around similar problems.

You don't need that.
kdelibs/kdecore/fakes.cpp provides an implementation for setenv
(obviously using putenv) if the system doesn't have it.
And config.h.bot provides the prototype for setenv in this case.
So the "real solution" is already in place. Did you actually hit a problem
while trying to compile KDE ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

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

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