diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-08-12 16:10:56 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-08-13 10:28:18 +0100 |
commit | d438e3847e4bf5221fb30802d3e6a51a68148fd1 (patch) | |
tree | 5ad1f922a66b381037ae80cf2ea3e37b7800db0b | |
parent | 4c5118e78b272897cf99c4f79e6577077d73b205 (diff) | |
download | colord-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.c | 4 |
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> |