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

List:       kde-core-devel
Subject:    Re: Help with making stuff compile on non-Linux
From:       Sebastian =?utf-8?q?Tr=C3=BCg?= <strueg () mandriva ! com>
Date:       2008-07-22 22:33:23
Message-ID: 200807230033.23630.strueg () mandriva ! com
[Download RAW message or body]

On Tuesday 22 July 2008 22:44:38 Thiago Macieira wrote:
> Adriaan de Groot wrote:
> >On Tuesday 22 July 2008 20:03:36 Sebastian TrĂ¼g wrote:
> >> I need the attached code to compile for KDE. That means that I need
> >> cmake checks and windows or mac versions for it. Can someone help me
> >> there before I commit?
> >
> >Might I also suggest "linux versions with a kernel < 2.6.13" as a
> > target, or is the whole kernel-of-the-week thing strong enough that
> > those systems are too old to run KDE?
>
> When the syscall doesn't exist, this will simply cause the process not to
> lower its I/O priority.
>
> However, if that happens, the application will need code to pace itself.

So, ionice was introduced in 2.6.13 then? Hm, that is actually a pretty 
unwelcome restriction. On the other hand, the code is used for strigi which 
can be deactivated.
In any case I would not really know how to make the app pace itself regarding 
to IO. I am not even sure if its worth the effort at the moment.

I would tend towards Alex' proposition to ifdef the calls the easy way, so it 
compiles everywhere and uses the lowest priority possible.

So that would mean something like

#ifndef SYS_ioprio_set
return false
#endif

Cheers,
Sebastian


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

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