summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Duchateau <duchateau.olivier@gmail.com>2022-10-31 10:28:23 +0100
committerJan Rybar <jrybar@redhat.com>2023-02-07 18:38:54 +0000
commit2d07b95524891470e0eadfeab6a751bd723215a3 (patch)
treefef952536c36209bd89c154a9dd88c0d936195a4
parent31309f18a398152ca86d7f3eea52a605e77d3df9 (diff)
downloadpolkit-2d07b95524891470e0eadfeab6a751bd723215a3.tar.gz
Fix linker issue (on FreeBSD) with Spidermonkey JavaScript engine
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 876b55e..f3a8588 100644
--- a/meson.build
+++ b/meson.build
@@ -154,6 +154,11 @@ if js_engine == 'duktape'
config_h.set('HAVE_' + func.to_upper(), cc.has_function(func, prefix : '#include <pthread.h>'))
elif js_engine == 'mozjs'
js_dep = dependency('mozjs-102')
+
+ _system = host_machine.system().to_lower()
+ if _system.contains('freebsd')
+ config_h.set('__BSD_VISIBLE', 1)
+ endif
endif
dbus_dep = dependency('dbus-1', required: false)