diff options
Diffstat (limited to 'src/firejail/protocol.c')
-rw-r--r-- | src/firejail/protocol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/protocol.c b/src/firejail/protocol.c index 5f730afef..8e75277c2 100644 --- a/src/firejail/protocol.c +++ b/src/firejail/protocol.c | |||
@@ -74,6 +74,11 @@ static struct sock_filter *find_protocol_domain(const char *p) { | |||
74 | 74 | ||
75 | // --debug-protocols | 75 | // --debug-protocols |
76 | void protocol_list(void) { | 76 | void protocol_list(void) { |
77 | #ifndef SYS_socket | ||
78 | fprintf(stderr, "Warning: --protocol not supported on this platform\n"); | ||
79 | return; | ||
80 | #endif | ||
81 | |||
77 | int i = 0; | 82 | int i = 0; |
78 | while (protocol[i] != NULL) { | 83 | while (protocol[i] != NULL) { |
79 | printf("%s, ", protocol[i]); | 84 | printf("%s, ", protocol[i]); |