Here are some useful patches to rn for A/UX

John Coolidge coolidge at cs.uiuc.edu
Fri Dec 7 11:27:50 AEST 1990


jim at jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
> ->< >Distinguished from this are the various defining flags for cc which make
> ->< >your C code compile in the first place:
> ->< >
> ->< >-D_SYSV_SOURCE    [...]
> ->< 
> ->< NO! Your not supposed to define that youself! Why do you think that
> ->< Apple was so nasty to put those annoying underscores in front of the
> ->< defines ?
> ->< 
> ->Probably to make sure that they don't collide with anything the program in
> ->question might want to define for itself.

>Yeah, but aren't -D_BSD_SOURCE and -D_SYSV_SOURCE "set" by default by cpp?

>I think they are.

Yes, you're right. In fact, all four (BSD, SYSV, AUX, and POSIX) are
set by default by cpp. CC turns off the ones it doesn't like.

Gnu cpp in the current version defines none of them by default. My
opinion is that _AUX_SOURCE should turn on more things than it does,
and that _BSD_SOURCE, _SYSV_SOURCE, and _POSIX_SOURCE should be
reserved for things that are in fundamental confict with each other.
The current situation, where _BSD_SOURCE and _SYSV_SOURCE both need
to be defined in order to compile a number of programs, is wrong.

--John

--------------------------------------------------------------------------
John L. Coolidge     Internet:coolidge at cs.uiuc.edu   UUCP:uiucdcs!coolidge
Of course I don't speak for the U of I (or anyone else except myself)
Copyright 1990 John L. Coolidge. Copying allowed if (and only if) attributed.
You may redistribute this article if and only if your recipients may as well.



More information about the Comp.unix.aux mailing list