Changeset 10518

Show
Ignore:
Timestamp:
08/22/08 08:46:17 (3 months ago)
Author:
gb
Message:

Don't try to #include <linux/futex.h>, which is released in unusable
form on some Linux distributions (CentOS 5, at least). All we need
from it are the constants FUTEX_WAIT and FUTEX_WAKE (which are
unlikely to ever change), so just #define them here.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/source/lisp-kernel/Threads.h

    r10068 r10518  
    7272 
    7373#ifdef USE_FUTEX 
    74 #include <linux/futex.h> 
     74#ifndef FUTEX_WAIT 
     75#define FUTEX_WAIT (0) 
     76#endif 
     77#ifndef FUTEX_WAKE 
     78#define FUTEX_WAKE (1) 
     79#endif 
    7580#include <sys/syscall.h> 
    7681#endif