From 5d2fd275e8be2af4ee20c0a3d767c104fe00d30d Mon Sep 17 00:00:00 2001 From: Boris Lytochkin Date: Sun, 3 Apr 2016 10:10:45 +0300 Subject: [PATCH] ENOTRECOVERABLE & EOWNERDEAD may not be defined on FreeBSD --- src/lib/log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/log.c b/src/lib/log.c index 9cd26ae9a9c..e9c86174753 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -112,7 +112,9 @@ char const *fr_errno_macro_names[] = { [ENOTCONN] = "ENOTCONN", [ENOTDIR] = "ENOTDIR", [ENOTEMPTY] = "ENOTEMPTY", +#ifdef ENOTRECOVERABLE [ENOTRECOVERABLE] = "ENOTRECOVERABLE", +#endif [ENOTSOCK] = "ENOTSOCK", [ENOTSUP] = "ENOTSUP", #if ENOTSUP != EOPNOTSUPP @@ -121,7 +123,9 @@ char const *fr_errno_macro_names[] = { [ENOTTY] = "ENOTTY", [ENXIO] = "ENXIO", [EOVERFLOW] = "EOVERFLOW", +#ifdef EOWNERDEAD [EOWNERDEAD] = "EOWNERDEAD", +#endif [EPERM] = "EPERM", [EPIPE] = "EPIPE", [EPROTO] = "EPROTO", -- 2.47.3