From 6ad788b78d8b0cf384e97dac5cabd052cb8a53f2 Mon Sep 17 00:00:00 2001 From: helmat Date: Mon, 6 Jan 2020 06:41:55 +0100 Subject: [PATCH] Fix if_mounted & if_running variables for FreeBSD --- src/core.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.cc b/src/core.cc index a7c32238..c2a105f7 100644 --- a/src/core.cc +++ b/src/core.cc @@ -1077,7 +1077,7 @@ struct text_object *construct_text_object(char *s, const char *arg, long line, obj->data.s = STRNDUP_ARG; obj->callbacks.iftest = &if_existing_iftest; obj->callbacks.free = &gen_free_opaque; -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) END OBJ_IF_ARG(if_mounted, 0, "if_mounted needs an argument") obj->data.s = STRNDUP_ARG; obj->callbacks.iftest = &check_mount;