summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-09 04:21:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:37:59 -0500
commit561a02d646b3a43014db7814f3af91d1f67110b2 (patch)
tree0527c02e67976aceccb7869e8c6c5be18a0cc779 /source4/libcli
parentaf87f98d150155d9707135bbd04f199b051c0048 (diff)
downloadsamba-561a02d646b3a43014db7814f3af91d1f67110b2.tar.gz
samba-561a02d646b3a43014db7814f3af91d1f67110b2.tar.bz2
samba-561a02d646b3a43014db7814f3af91d1f67110b2.zip
r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have it
(OpenBSD 3.7). (This used to be commit cc24af6545b19ad7710c43399c396e1807f80eeb)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/errormap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index 808f5427c6..95fac97428 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -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