/* -*- C++ -*- * The contents of this header file is only used if * strerror() is not provided by the implementation. * It either includes the appropriate header files * or declares sys_nerr and sys_errlist itself. */ #ifndef HAVE_STRERROR /* Provide declaration of sys_nerr. */ #ifdef HAVE_SYS_NERR #if ERRNO_H_DECLARES_SYS_NERR #include #elif STDIO_H_DECLARES_SYS_NERR #include #elif STDLIB_H_DECLARES_SYS_NERR #include #else extern int sys_nerr; #endif #endif /* Provide declaration of sys_errlist. */ #ifdef HAVE_SYS_ERRLIST #if ERRNO_H_DECLARES_SYS_ERRLIST #include #elif STDIO_H_DECLARES_SYS_ERRLIST #include #elif STDLIB_H_DECLARES_SYS_ERRLIST #include #else extern char *sys_errlist[]; #endif #endif #endif