summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-06 15:09:01 -0700
committerJeremy Allison <jra@samba.org>2009-08-06 15:09:01 -0700
commit650445fc3cb8f61fdb6e570e46226fff101bb174 (patch)
tree2643058a6a0d06ce24653044ca44a13c85a24cf9
parente76af514c3a99a6c65398a9d7a99012ff73583eb (diff)
downloadsamba-650445fc3cb8f61fdb6e570e46226fff101bb174.tar.gz
samba-650445fc3cb8f61fdb6e570e46226fff101bb174.tar.bz2
samba-650445fc3cb8f61fdb6e570e46226fff101bb174.zip
Fix bug #5714 - NetBSD, ENODATA undefined, at least some releases.
Jeremy.
-rw-r--r--source3/include/includes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index a636716c22..2d82e6e57e 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -207,7 +207,11 @@ typedef int ber_int_t;
#endif
#ifndef ENOATTR
+#if defined(ENODATA)
#define ENOATTR ENODATA
+#else
+#define ENOATTR ENOENT
+#endif
#endif
/* mutually exclusive (SuSE 8.2) */