From 030b452b8d6c95be6b6de661aed96e8379d1a80e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 22 May 2012 22:12:10 -0400 Subject: fix missing _BSD_SOURCE support in bits/*.h this is actually rather ugly, and would get even uglier if we ever want to support further feature test macros. at some point i may factor the bits headers into separate files for C base, POSIX base, and nonstandard extensions (the only distinctions that seem to matter now) and then the logic for which to include can go in the main header rather than being duplicated for each arch. the downside of this is that it would result in more files having to be opened during compilation, so as long as the ugliness does not grow, i'm inclined to leave it alone for now. --- arch/x86_64/bits/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86_64/bits/mman.h') diff --git a/arch/x86_64/bits/mman.h b/arch/x86_64/bits/mman.h index dc61b500..80ed39fa 100644 --- a/arch/x86_64/bits/mman.h +++ b/arch/x86_64/bits/mman.h @@ -30,7 +30,7 @@ #define MCL_CURRENT 1 #define MCL_FUTURE 2 -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define MADV_NORMAL 0 #define MADV_RANDOM 1 #define MADV_SEQUENTIAL 2 -- cgit v1.2.1