From: Philippe Wooding Date: Fri, 4 Dec 2015 23:38:51 +0000 (+0100) Subject: Some error codes aren't defined on FreeBSD X-Git-Tag: release_3_0_11~106^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1429%2Fhead;p=thirdparty%2Ffreeradius-server.git Some error codes aren't defined on FreeBSD --- diff --git a/src/lib/log.c b/src/lib/log.c index f9c2cfdcda..9cd26ae9a9 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -90,7 +90,9 @@ char const *fr_errno_macro_names[] = { [ENETUNREACH] = "ENETUNREACH", [ENFILE] = "ENFILE", [ENOBUFS] = "ENOBUFS", +#ifdef ENODATA [ENODATA] = "ENODATA", +#endif [ENODEV] = "ENODEV", [ENOENT] = "ENOENT", [ENOEXEC] = "ENOEXEC", @@ -100,8 +102,12 @@ char const *fr_errno_macro_names[] = { [ENOMSG] = "ENOMSG", [ENOPROTOOPT] = "ENOPROTOOPT", [ENOSPC] = "ENOSPC", +#ifdef ENOSR [ENOSR] = "ENOSR", +#endif +#ifdef ENOSTR [ENOSTR] = "ENOSTR", +#endif [ENOSYS] = "ENOSYS", [ENOTCONN] = "ENOTCONN", [ENOTDIR] = "ENOTDIR", @@ -126,7 +132,9 @@ char const *fr_errno_macro_names[] = { [ESPIPE] = "ESPIPE", [ESRCH] = "ESRCH", [ESTALE] = "ESTALE", +#ifdef ETIME [ETIME] = "ETIME", +#endif [ETIMEDOUT] = "ETIMEDOUT", [ETXTBSY] = "ETXTBSY", [EXDEV] = "EXDEV"