Fix bug #5714 - NetBSD, ENODATA undefined, at least some releases.
[ira/wip.git] / source3 / include / includes.h
index a636716c22de174e9c18ba2dbe9c3e486f9e8132..2d82e6e57e274705c7f5e874d9eeb1887a90fb39 100644 (file)
@@ -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) */