VirtualBox

Changeset 849 in vbox for trunk/src


Ignore:
Timestamp:
Feb 12, 2007 4:35:51 PM (18 years ago)
Author:
vboxsync
Message:

In 2.6.17 linux/futex.h starts including linux/sched.h and is no longer usable from C++ code. Sigh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/sems-linux.cpp

    r823 r849  
    3535#include <sys/time.h>
    3636#include <sys/syscall.h>
    37 #include <linux/futex.h>
     37#if 0 /* With 2.6.17 futex.h has become C++ unfriendly. */
     38# include <linux/futex.h>
     39#else
     40# define FUTEX_WAIT 0
     41# define FUTEX_WAKE 1
     42#endif
    3843
    3944
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette