Skip to content

Commit

Permalink
Merge pull request #4117 from daschuer/macos_screensaver_warning
Browse files Browse the repository at this point in the history
Check if HAVE_XSCREENSAVER_SUSPEND is defined befor using the value
  • Loading branch information
Holzhaus committed Jul 18, 2021
2 parents 7854637 + 0cb3e53 commit eb76915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/screensaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ With the help of the following source codes:
# include <windows.h>
#elif defined(Q_OS_LINUX)
# include <QtDBus>
#elif HAVE_XSCREENSAVER_SUSPEND
#elif defined(HAVE_XSCREENSAVER_SUSPEND) && HAVE_XSCREENSAVER_SUSPEND
# include <X11/extensions/scrnsaver.h>
#endif // Q_OS_WIN

#if defined(Q_OS_LINUX) || HAVE_XSCREENSAVER_SUSPEND
#if defined(Q_OS_LINUX) || (defined(HAVE_XSCREENSAVER_SUSPEND) && HAVE_XSCREENSAVER_SUSPEND)
# define None XNone
# define Window XWindow
# include <X11/Xlib.h>
Expand Down

0 comments on commit eb76915

Please sign in to comment.