Update cdefs.h to match modern FreeBSD

Joel Sherrill joel.sherrill@oarcorp.com
Fri Sep 7 03:38:00 GMT 2012


I expect this is the most controversial of the patches. :)

It is basically the cdefs.h file from FreeBSD 8.x with the
addition of __ASMNAME from the old cdefs.h because
I couldn't compile gcc without it being there.

Also I disabled the section of code which uses _POSIX_C_SOURCE
to define a number of other macros unless you were targeting
RTEMS. Honestly, I didn't want to break any other target and this
looked like code which could do it.  RTEMS needs it for the new
FreeBSD code but I can't confidently state that it is acceptable
for anyone else.

I am perfectly happy to put this in sys/rtems if that's the

I am assuming this requires more than a simple "OK to apply?" :)

2012-09-05  Joel Sherrill <joel.sherrill@oarcorp.com>

     * libc/include/sys/cdefs.h: Update to newer FreeBSD version.
     Make OS POSIX level features conditional on __rtems__.
     * libc/include/sys/features.h: Update rtems section to match cdefs.h

Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cdefs_patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20120907/68ee6cda/attachment.ksh>

More information about the Newlib mailing list