summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-08-12 16:10:56 +0100
committerRichard Hughes <richard@hughsie.com>2017-08-13 10:28:18 +0100
commitd438e3847e4bf5221fb30802d3e6a51a68148fd1 (patch)
tree5ad1f922a66b381037ae80cf2ea3e37b7800db0b
parent4c5118e78b272897cf99c4f79e6577077d73b205 (diff)
downloadcolord-d438e3847e4bf5221fb30802d3e6a51a68148fd1.tar.gz
Use appropriate feature macro for realpath()
The realpath() function is only available if _XOPEN_SOURCE is defined to a value larger than 500.
-rw-r--r--lib/colord/cd-test-shared.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/colord/cd-test-shared.c b/lib/colord/cd-test-shared.c
index 325102f..c3b9d23 100644
--- a/lib/colord/cd-test-shared.c
+++ b/lib/colord/cd-test-shared.c
@@ -21,6 +21,10 @@
#include "config.h"
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
+#endif
+
#include <limits.h>
#include <stdlib.h>