15 Nov
2002
15 Nov
'02
18:50
On Fri, Nov 15, Philipp Thomas wrote:
* Michael Fischer (michael@visv.net) [20021115 08:02]:
I am developing an app under SuSE 7.1 at work, and discovered that in order to get mmap(2) with MAP_ANON, I had to #define __USE_MISC. (I peeked in
) That's the wrong way to do it, as you should never define __USE* directly. Look at /usr/include/features.h and you'll see the things you should define to get the __USE* defined.
__USE_MISC is defined if you define either _BSD_SOURCE or _SVID_SOURCE.
Ok, are there any peculiar surprises or "gotchas" associated with #define'ing either _BSD_SOURCE or _SVID_SOURCE on linux? TIA. Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.