summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 14:41:32 -0400
committerDavid Robillard <d@drobilla.net>2016-08-01 14:41:32 -0400
commit88992b952f5cc0bb20cff835247198a0886ab310 (patch)
tree246ec59e4937ffcbe3565726d11519ec6290772b
parent844ae92f089fecae14702517044773adaa32203f (diff)
downloadlilv-88992b952f5cc0bb20cff835247198a0886ab310.tar.gz
lilv-88992b952f5cc0bb20cff835247198a0886ab310.tar.bz2
lilv-88992b952f5cc0bb20cff835247198a0886ab310.zip
Use consistent feature test macros
-rw-r--r--test/lilv_test.c2
-rw-r--r--utils/bench.h2
-rw-r--r--utils/lv2bench.c2
-rw-r--r--wscript4
4 files changed, 5 insertions, 5 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index eb06dcd..f2ebd34 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -15,7 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _POSIX_C_SOURCE 200112L /* for setenv */
+#define _POSIX_C_SOURCE 200809L /* for setenv */
#define _XOPEN_SOURCE 500 /* for mkstemp */
#include <assert.h>
diff --git a/utils/bench.h b/utils/bench.h
index 1c11db4..83d7853 100644
--- a/utils/bench.h
+++ b/utils/bench.h
@@ -21,7 +21,7 @@
#ifndef BENCH_H
#define BENCH_H
-#define _POSIX_C_SOURCE 199309L
+#define _POSIX_C_SOURCE 200809L
#include <time.h>
#include <sys/time.h>
diff --git a/utils/lv2bench.c b/utils/lv2bench.c
index e585fbd..02f6e4e 100644
--- a/utils/lv2bench.c
+++ b/utils/lv2bench.c
@@ -14,7 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _POSIX_C_SOURCE 199309L
+#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
diff --git a/wscript b/wscript
index 53a0d57..7387420 100644
--- a/wscript
+++ b/wscript
@@ -95,7 +95,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'sratom-0', uselib_store='SRATOM',
atleast_version='0.4.0', mandatory=True)
- defines = ['_POSIX_C_SOURCE', '_BSD_SOURCE']
+ defines = ['_POSIX_C_SOURCE=200809L', '_BSD_SOURCE']
if conf.env.DEST_OS == 'darwin':
defines += ['_DARWIN_C_SOURCE']
@@ -113,7 +113,7 @@ def configure(conf):
conf.check_cc(function_name='clock_gettime',
header_name=['sys/time.h','time.h'],
- defines=['_POSIX_C_SOURCE=199309L'],
+ defines=['_POSIX_C_SOURCE=200809L'],
define_name='HAVE_CLOCK_GETTIME',
uselib_store='CLOCK_GETTIME',
lib=['rt'],