diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c index ae37cdd57..d6bb605d2 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <dirent.h> | 26 | #include <dirent.h> |
27 | #include <sys/mount.h> | 27 | #include <sys/mount.h> |
28 | 28 | ||
29 | #ifdef HAVE_X11 | ||
29 | // return 1 if xpra is installed on the system | 30 | // return 1 if xpra is installed on the system |
30 | static int x11_check_xpra(void) { | 31 | static int x11_check_xpra(void) { |
31 | struct stat s; | 32 | struct stat s; |
@@ -72,6 +73,7 @@ static int random_display_number(void) { | |||
72 | 73 | ||
73 | return display; | 74 | return display; |
74 | } | 75 | } |
76 | #endif | ||
75 | 77 | ||
76 | // return display number, -1 if not configured | 78 | // return display number, -1 if not configured |
77 | int x11_display(void) { | 79 | int x11_display(void) { |