diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index 0ba93a247..5e508d25d 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -45,6 +45,8 @@ #include #include +#include "os/osdep.h" + #include "xwayland-screen.h" #include "xwayland-vidmode.h" diff --git a/include/os.h b/include/os.h index 9ba569ae6..a69f127c1 100644 --- a/include/os.h +++ b/include/os.h @@ -158,10 +158,6 @@ extern _X_EXPORT void ListenOnOpenFD(int /* fd */ , int /* noxauth */ ); extern _X_EXPORT Bool AddClientOnOpenFD(int /* fd */ ); -#ifdef MONOTONIC_CLOCK -extern void ForceClockId(clockid_t /* forced_clockid */); -#endif - extern _X_EXPORT CARD32 GetTimeInMillis(void); extern _X_EXPORT CARD64 GetTimeInMicros(void); diff --git a/os/osdep.h b/os/osdep.h index 2687f0ee9..dc494d175 100644 --- a/os/osdep.h +++ b/os/osdep.h @@ -249,4 +249,7 @@ int OnlyListenToOneClient(ClientPtr client); void ListenToAllClients(void); +/* allow DDX to force using another clock */ +void ForceClockId(clockid_t forced_clockid); + #endif /* _OSDEP_H_ */