Ticket #44282: enable-ktimetracker.patch

File enable-ktimetracker.patch, 784 bytes (added by RJVB (René Bertin), 10 years ago)
  • CMakeLists.txt

    old new  
    337337        macro_optional_add_subdirectory(knode)
    338338      endif()
    339339
    340       if(Q_WS_X11)
     340      #if(Q_WS_X11)
    341341        macro_optional_add_subdirectory(ktimetracker)
    342       endif()
     342      #endif()
    343343
    344344    endif()
    345345    macro_optional_add_subdirectory(kontact) # must be the last one.
  • ./ktimetracker/ktimetrackerutility.cpp

    old new  
    2626
    2727#include <math.h>
    2828#include <stdlib.h>
    29 #include <X11/Xlib.h>
    30 #include <fixx11h.h>
     29#ifdef Q_WS_X11
     30#       include <X11/Xlib.h>
     31#       include <fixx11h.h>
     32#endif
    3133
    3234QString getFocusWindow()
    3335{