diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-06 14:04:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-07-06 14:04:29 +0000 |
commit | 04e4829d46887039be024e83dc1951256e672ec1 (patch) | |
tree | 074ab8501af4a937f5468d7a91cfd4f0a2a15367 /c/src/lib/include/sys | |
parent | Interrupt stack is allocated by _ISR_Handler_initialization (diff) | |
download | rtems-04e4829d46887039be024e83dc1951256e672ec1.tar.bz2 |
Patch rtems-rc-20000626-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
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.
Diffstat (limited to 'c/src/lib/include/sys')
-rw-r--r-- | c/src/lib/include/sys/Makefile.am | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/lib/include/sys/Makefile.am b/c/src/lib/include/sys/Makefile.am index 3d6045697b..1e6b181515 100644 --- a/c/src/lib/include/sys/Makefile.am +++ b/c/src/lib/include/sys/Makefile.am @@ -9,12 +9,11 @@ else NETWORKING_H_FILES += ioctl.h endif -if UNIX -else -NEWLIB_H_FILES += termios.h +if NEWLIB +NEWLIB_H_FILES += termios.h cdefs.h endif -H_FILES = cdefs.h ioccom.h utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES) +H_FILES = ioccom.h utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES) noinst_HEADERS = utime.h termios.h ioctl.h ioccom.h |