From d231301e2fa7032886762ddd0a9a2f4ed04de3e3 Mon Sep 17 00:00:00 2001 From: Abdulaziz Ghuloum Date: Wed, 26 Aug 2009 19:13:40 +0300 Subject: [PATCH] added workaround for missing CPP definitions on FreeBSD. --- scheme/last-revision | 2 +- src/ikarus-errno.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/scheme/last-revision b/scheme/last-revision index ad791b7..c2d7082 100644 --- a/scheme/last-revision +++ b/scheme/last-revision @@ -1 +1 @@ -1849 +1850 diff --git a/src/ikarus-errno.c b/src/ikarus-errno.c index 357393c..2226f63 100644 --- a/src/ikarus-errno.c +++ b/src/ikarus-errno.c @@ -31,6 +31,22 @@ typedef struct errno_info { #define ECANCELED 140 #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[] = { /* errnos from POSIX IEEE Std 1003.1 2004 Edition */ {E2BIG, "E2BIG", fix(-1)},