mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: only run the seccomp check if it was enabled
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_LIBSECCOMP
|
||||
#include <seccomp.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
@@ -37,3 +40,9 @@ int main()
|
||||
fprintf(stderr, "all ok\n");
|
||||
exit(0);
|
||||
}
|
||||
#else
|
||||
int main()
|
||||
{
|
||||
return 77;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user