Changeset 10518


Ignore:
Timestamp:
Aug 22, 2008, 12:46:17 PM (11 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.