This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Update cdefs.h to match modern FreeBSD


Hi

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
consensus.

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
    expectations.


-- 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


Attachment: cdefs_patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]