From 202e1133e4036b30c20fe01926608fe359284224 Mon Sep 17 00:00:00 2001 From: Oleg Sidorkin Date: Fri, 3 Apr 2020 17:27:09 +0300 Subject: [PATCH] fix build on freebsd: freebsd has compiler with atomics also --- binding.gyp | 2 +- vendor/openpa/openpa.gyp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/binding.gyp b/binding.gyp index 10e142f..b5a0ccb 100644 --- a/binding.gyp +++ b/binding.gyp @@ -51,7 +51,7 @@ "GCC_SYMBOLS_PRIVATE_EXTERN": "YES" } }], - ["OS=='mac' or OS=='linux'", { + ["OS=='mac' or OS=='linux' or OS=='freebsd'", { "defines": [ "OPA_HAVE_GCC_INTRINSIC_ATOMICS=1", "HAVE_STDDEF_H=1", diff --git a/vendor/openpa/openpa.gyp b/vendor/openpa/openpa.gyp index 0ceeb4b..dde9c5d 100644 --- a/vendor/openpa/openpa.gyp +++ b/vendor/openpa/openpa.gyp @@ -45,7 +45,7 @@ }], ] }], - ["OS=='mac' or OS=='linux'", { + ["OS=='mac' or OS=='linux' or OS=='freebsd'", { "sources": [ "src/primitives/opa_gcc_intrinsics.h" ],