From b72238c97fe2e3c9db550af7d4b22d41c8350eaf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Apr 2021 14:05:47 -0400 Subject: Fix build on FreeBSD --- test/test_util.c | 1 + test/test_value.c | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'test') diff --git a/test/test_util.c b/test/test_util.c index 8c8f36a..b49b14e 100644 --- a/test/test_util.c +++ b/test/test_util.c @@ -15,6 +15,7 @@ */ #define _XOPEN_SOURCE 600 /* for mkstemp */ +#define __BSD_VISIBLE 1 #undef NDEBUG diff --git a/test/test_value.c b/test/test_value.c index b36737a..82b44b7 100644 --- a/test/test_value.c +++ b/test/test_value.c @@ -72,12 +72,6 @@ main(void) assert(fabs(lilv_node_as_float(fval) - 1.6180) < FLT_EPSILON); assert(isnan(lilv_node_as_float(sval))); -#if defined(__clang__) -# pragma clang diagnostic pop -#elif defined(__GNUC__) && __GNUC__ > 4 -# pragma GCC diagnostic pop -#endif - LilvNode* loc_abs = lilv_new_file_uri(world, NULL, "/foo/bar"); LilvNode* loc_rel = lilv_new_file_uri(world, NULL, "foo"); LilvNode* host_abs = lilv_new_file_uri(world, "host", "/foo/bar"); -- cgit v1.2.1