diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-24 18:46:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-24 18:46:09 +0000 |
commit | dbfa92dd947cb26ebfec42c756eb36aa3b7571e5 (patch) | |
tree | b13fbece5917465b1e703dc7452478f0331861db /newlib | |
parent | d96324a5a8688690dcaa55127f3a9e6d961f5600 (diff) | |
download | newlib-dbfa92dd947cb26ebfec42c756eb36aa3b7571e5.zip newlib-dbfa92dd947cb26ebfec42c756eb36aa3b7571e5.tar.gz newlib-dbfa92dd947cb26ebfec42c756eb36aa3b7571e5.tar.bz2 |
2005-01-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/string.h: Remove Linux-specific declaration of
strsignal and add #include <sys/string.h>.
* libc/include/sys/string.h: New file.
* libc/include/sys/linux/sys/string.h: New file with strsignal
declaration deleted above.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 8 | ||||
-rw-r--r-- | newlib/libc/include/string.h | 4 | ||||
-rw-r--r-- | newlib/libc/include/sys/string.h | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/string.h | 8 |
4 files changed, 20 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 489e2cf..f576039 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,11 @@ +2005-01-24 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/string.h: Remove Linux-specific declaration of + strsignal and add #include <sys/string.h>. + * libc/include/sys/string.h: New file. + * libc/include/sys/linux/sys/string.h: New file with strsignal + declaration deleted above. + 2005-01-20 Jeff Johnston <jjohnstn@redhat.com> * libc/time/strftime.c (strftime): Change %r and %x to be compliant diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index bbc66d4..30756b7 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -75,8 +75,6 @@ char *_EXFUN(strupr,(char *)); const char *_EXFUN(strsignal, (int __signo)); #endif int _EXFUN(strtosigno, (const char *__name)); -#elif defined(__linux__) -char *_EXFUN(strsignal, (int __signo)); #endif /* These function names are used on Windows and perhaps other systems. */ @@ -95,6 +93,8 @@ char *_EXFUN(strsignal, (int __signo)); #endif /* ! __STRICT_ANSI__ */ +#include <sys/string.h> + _END_STD_C #endif /* _STRING_H_ */ diff --git a/newlib/libc/include/sys/string.h b/newlib/libc/include/sys/string.h new file mode 100644 index 0000000..ceedf4b --- /dev/null +++ b/newlib/libc/include/sys/string.h @@ -0,0 +1,2 @@ +/* This is a dummy <sys/string.h> used as a placeholder for + systems that need to have a special header file. */ diff --git a/newlib/libc/sys/linux/sys/string.h b/newlib/libc/sys/linux/sys/string.h new file mode 100644 index 0000000..25489ca --- /dev/null +++ b/newlib/libc/sys/linux/sys/string.h @@ -0,0 +1,8 @@ +#ifndef _SYS_STRING_H +#define _SYS_STRING_H + +#ifndef __STRICT_ANSI__ +char *_EXFUN(strsignal, (int __signo)); +#endif + +#endif /* _SYS_STRING_H */ |