added workaround for missing CPP definitions on FreeBSD.

This commit is contained in:
Abdulaziz Ghuloum 2009-08-26 19:13:40 +03:00
parent 399a428382
commit d231301e2f
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
1849 1850

View File

@ -31,6 +31,22 @@ typedef struct errno_info {
#define ECANCELED 140 #define ECANCELED 140
#endif #endif
#ifndef ENODATA
#define ENODATA 96
#endif
#ifndef ENOSR
#define ENOSR 98
#endif
#ifndef ENOSTR
#define ENOSTR 99
#endif
#ifndef ETIME
#define ETIME 101
#endif
static errno_info errno_table[] = { static errno_info errno_table[] = {
/* errnos from POSIX IEEE Std 1003.1 2004 Edition */ /* errnos from POSIX IEEE Std 1003.1 2004 Edition */
{E2BIG, "E2BIG", fix(-1)}, {E2BIG, "E2BIG", fix(-1)},