[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:       Thiago Macieira <thiago () kde ! org>
Date:       2008-07-23 13:25:48
Message-ID: 200807231525.48531.thiago () kde ! org
[Download RAW message or body]


On Wednesday 23 July 2008 10:15:06 Sebastian TrĂ¼g wrote:
> #include "priority.h"
>
> #include <QtCore/QDebug>
>
> #ifdef SYS_ioprio_set
> #define HAVE_IO_PRIO
> #endif
>
> #ifdef SCHED_BATCH
> #define HAVE_SCHED_BATCH
> #endif
>
> #ifndef _GNU_SOURCE
> #define _GNU_SOURCE
> #endif

If you're going to define _GNU_SOURCE, you should do it before any includes.

It's only processed once (by features.h).

-- 
   Thiago Macieira   -   thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C   966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

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

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