mirror of
				https://github.com/janet-lang/janet
				synced 2025-11-04 01:23:04 +00:00 
			
		
		
		
	Fix features for bsd.
Don't define XOPEN_SOURCE unless we actually need it.
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user