diff options
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 2 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index b0e4536a2..ffde3ffd4 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -50,7 +50,7 @@ */ -#if defined(__arm__) || defined(__thumb__) +#if (defined(__arm__) || defined(__thumb__)) /* ARM always has big-endian words. Within those words the byte ordering will be big or little endian depending upon the target. */ #define __IEEE_BIG_ENDIAN diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index ac39a59a6..df824d88d 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -118,8 +118,16 @@ int _EXFUN(unlink, (const char *__path )); int _EXFUN(vhangup, (void )); _READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte )); +extern char *optarg; /* getopt(3) external variables */ +extern int optind, opterr, optopt; +int getopt(int, char * const [], const char *); +extern int optreset; /* getopt(3) external variable */ + #ifndef _POSIX_SOURCE pid_t _EXFUN(vfork, (void )); + +extern char *suboptarg; /* getsubopt(3) external variable */ +int getsubopt(char **, char * const *, char **); #endif /* _POSIX_SOURCE */ /* Provide prototypes for most of the _<systemcall> names that are |