diff options
author | Dave Beckett <dave@dajobe.org> | 2017-04-02 14:22:43 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2017-04-02 14:22:43 -0700 |
commit | c99885120dae402d81f03d021307f4a947d2c56f (patch) | |
tree | 23d0e9ab6b7a2f9d2c085af34a3147d2ad801c01 | |
parent | 1be5cadcb9fd2f3385fed42b6350933ad688eeb4 (diff) | |
download | raptor-c99885120dae402d81f03d021307f4a947d2c56f.tar.gz |
Add _POSIX_C_SOURCE for lstat() in test code
-rw-r--r-- | src/raptor_uri.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/raptor_uri.c b/src/raptor_uri.c index 1ace31f7..d8b017fa 100644 --- a/src/raptor_uri.c +++ b/src/raptor_uri.c @@ -27,6 +27,13 @@ #include <raptor_config.h> #endif +#if defined(STANDALONE) && defined(HAVE_UNISTD_H) && defined(HAVE_SYS_STAT_H) +/* for lstat() used in main() test which is in POSIX */ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif +#endif + #include <stdio.h> #include <string.h> #ifdef HAVE_STRINGS_H |