aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-08-30 18:30:16 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2000-08-30 18:30:16 +0000
commit44e36af42bde0f212f7a1c10653d9f7b1a00bdb3 (patch)
tree4e082443714ad3a5327ea305afc948955739560c /newlib/libc/string
parent4f2aac14aaa7e3b629cabdd862959c411abff15d (diff)
downloadnewlib-44e36af42bde0f212f7a1c10653d9f7b1a00bdb3.zip
newlib-44e36af42bde0f212f7a1c10653d9f7b1a00bdb3.tar.gz
newlib-44e36af42bde0f212f7a1c10653d9f7b1a00bdb3.tar.bz2
* libc/string/swab.c: Specify that it's defined in <unistd.h>.
* libc/include/string.h: Don't include <sys/types.h>, as it causes really bad namespace pollution. Don't declare swab(), it is properly declared in unistd.h.
Diffstat (limited to 'newlib/libc/string')
-rw-r--r--newlib/libc/string/swab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/swab.c b/newlib/libc/string/swab.c
index 98daf5a..8248337 100644
--- a/newlib/libc/string/swab.c
+++ b/newlib/libc/string/swab.c
@@ -3,7 +3,7 @@ FUNCTION
<<swab>>---swap adjacent bytes
ANSI_SYNOPSIS
- #include <string.h>
+ #include <unistd.h>
void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>);
TRAD_SYNOPSIS