mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 09:47:17 +00:00
Fix features for bsd.
Don't define XOPEN_SOURCE unless we actually need it.
This commit is contained in:
parent
5d840b944b
commit
e4ea8bc867
@ -29,7 +29,8 @@
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#endif
|
||||
|
||||
#ifndef _XOPEN_SOURCE
|
||||
/* Needed for realpath on linux */
|
||||
#if !defined(_XOPEN_SOURCE) && defined(__linux__)
|
||||
#define _XOPEN_SOURCE 500
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user