r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have it
authorTim Potter <tpot@samba.org>
Fri, 9 Sep 2005 04:21:19 +0000 (04:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:37:59 +0000 (13:37 -0500)
(OpenBSD 3.7).

source/libcli/util/errormap.c

index 808f5427c69b51d7abb093cf54a18634fd231b50..95fac97428f283adb5cf58bd97e2da2a2364e4f3 100644 (file)
@@ -1278,7 +1278,9 @@ const struct unix_error_map unix_nt_errmap[] = {
        { EPIPE,        NT_STATUS_CONNECTION_DISCONNECTED },
        { ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },
        { EBUSY,        NT_STATUS_SHARING_VIOLATION },
+#ifdef ENOTSUP
        { ENOTSUP,      NT_STATUS_NOT_SUPPORTED},
+#endif
 #ifdef EHOSTUNREACH
        { EHOSTUNREACH, NT_STATUS_HOST_UNREACHABLE },
 #endif