1#ifndef _ERROR_H
2#define _ERROR_H
3
4#if HAVE_STRERROR
5//extern int errno;
6#  define error_string strerror(errno)
7#elif HAVE_SYS_ERRLIST
8extern const char *const sys_errlist[];
9extern int errno;
10#  define error_string (sys_errlist[errno])
11#else
12#  define error_string "error message not found"
13#endif
14
15#endif
16