mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +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
|
#define _POSIX_C_SOURCE 200112L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _XOPEN_SOURCE
|
/* Needed for realpath on linux */
|
||||||
|
#if !defined(_XOPEN_SOURCE) && defined(__linux__)
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 500
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user