ENOTRECOVERABLE & EOWNERDEAD may not be defined on FreeBSD
authorBoris Lytochkin <lytboris@yandex-team.ru>
Sun, 3 Apr 2016 07:10:45 +0000 (10:10 +0300)
committerBoris Lytochkin <lytboris@yandex-team.ru>
Tue, 19 Apr 2016 14:24:16 +0000 (17:24 +0300)
src/lib/log.c

index 9cd26ae..e9c8617 100644 (file)
@@ -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",