Changeset 04e4829 in rtems for c/src/lib/include


Ignore:
Timestamp:
07/06/00 14:04:29 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
42ed3004
Parents:
c2f39fff
Message:

Patch rtems-rc-20000626-1.diff from Ralf Corsepius <corsepiu@…>.
Comments follow:

Building linux/posix fails due to including lib/include/sys/cdefs.h
instead of linux's sys/cdefs.h.
AFAIS, this sys/cdefs.h is specific to newlib and should probably
not be used on any unix host.

Therefore, I changed the relevant Makefile.am/configure.in to
condionally install sys/cdefs.h only if newlib is present.

This triggered another bug inside of the newlib-check for one of
RTEMS target's (Unfortunately I can't remember which - mips/i960 ?
... one of the more exotic ...), for which int func() isn't
identical to void func().

Note: This patch needs to be tested under Cygwin and Solaris. I am
particularily unsure about Cygwin/posix, as it applies a different
version newlib which must not trigger RTEMS newlib check (it is
supposed to fail) and if it may need RTEMS's sys/cdefs.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/include/sys/Makefile.am

    rc2f39fff r04e4829  
    1010endif
    1111
    12 if UNIX
    13 else
    14 NEWLIB_H_FILES += termios.h
     12if NEWLIB
     13NEWLIB_H_FILES += termios.h cdefs.h
    1514endif
    1615
    17 H_FILES = cdefs.h ioccom.h utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES)
     16H_FILES = ioccom.h utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES)
    1817
    1918noinst_HEADERS = utime.h termios.h ioctl.h ioccom.h
Note: See TracChangeset for help on using the changeset viewer.