aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/netbsd_common.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-06 09:44:21 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-06 10:34:58 +0100
commit71ac44a0c25ff6c56c29e47f864e9e0ebf167ffc (patch)
treea7c484d583cf82033d773e91f5d096bc034c17f4 /pkg/csource/netbsd_common.go
parente8062ae15f9c400ee4ae5d4b04baecf23cf16852 (diff)
executor: fix build
exitf function was not defined with some combinations of options in csource. Fix defines and switch exitf back to fail, fail already checks ENOMEM/EAGAIN, so there is no reason to use exitf in this particular case.
Diffstat (limited to 'pkg/csource/netbsd_common.go')
-rw-r--r--pkg/csource/netbsd_common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/csource/netbsd_common.go b/pkg/csource/netbsd_common.go
index a83bf578c..ff3558584 100644
--- a/pkg/csource/netbsd_common.go
+++ b/pkg/csource/netbsd_common.go
@@ -96,7 +96,7 @@ const int kErrorStatus = 68;
#if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT)) || \
defined(SYZ_USE_TMP_DIR) || defined(SYZ_TUN_ENABLE) || defined(SYZ_SANDBOX_NAMESPACE) || \
- defined(SYZ_SANDBOX_SETUID) || defined(SYZ_FAULT_INJECTION) || defined(__NR_syz_kvm_setup_cpu)
+ defined(SYZ_SANDBOX_NONE) || defined(SYZ_SANDBOX_SETUID) || defined(__NR_syz_kvm_setup_cpu)
NORETURN static void fail(const char* msg, ...)
{
int e = errno;
@@ -121,7 +121,7 @@ NORETURN static void error(const char* msg, ...)
}
#endif
-#if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT) && defined(SYZ_USE_TMP_DIR))
+#if defined(SYZ_EXECUTOR) || (defined(SYZ_REPEAT) && defined(SYZ_WAIT_REPEAT) && defined(SYZ_USE_TMP_DIR)) || defined(SYZ_FAULT_INJECTION)
NORETURN static void exitf(const char* msg, ...)
{
int e = errno;