1
0
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:
Calvin Rose 2020-03-30 15:38:03 -05:00
parent 5d840b944b
commit e4ea8bc867

View File

@ -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