diff options
| author | Toby Goodwin <tjg@star.le.ac.uk> | 1999-11-10 14:55:51 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:10 +0100 |
| commit | 3e9e4d3f8f518f8f467066593ae6f270d97f6d60 (patch) | |
| tree | 7d41f75ee428d4bb332b9664c116a8a6ce6ccea0 /proto.h | |
| parent | 3815ffb98e9db3d593219cead05284f983eb6d71 (diff) | |
beta: rc-1.6b1
Diffstat (limited to 'proto.h')
| -rw-r--r-- | proto.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -23,11 +23,11 @@ typedef long align_t; #include <stdarg.h> -/* C 9x specifies a va_copy() macro which should be used for copying +/* C 9x specifies a __va_copy() macro which should be used for copying objects of type va_list. Of course, most places don't have this yet, but where it does exist we need to use it. */ -#ifndef va_copy -#define va_copy(x,y) (x)=(y) +#ifndef __va_copy +#define __va_copy(x,y) (x)=(y) #endif #if STDC_HEADERS @@ -59,6 +59,15 @@ extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); #endif /* STDC_HEADERS */ +#if HAVE_STRERROR +/* Smells like POSIX. */ +#else +/* Assume BSD-style sys_errlist[]. */ +extern int sys_nerr; +extern char *sys_errlist[]; +#define strerror(x) ((0 <= (x)) && (errno < (x)) ? sys_errlist[x] : (char *)0) +#endif + #if HAVE_UNISTD_H #include <unistd.h> #endif |