summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2016-03-07 09:17:48 -0500
committerJeff Darcy <jdarcy@redhat.com>2016-03-10 05:53:28 -0800
commit6332eb773914ffd92aa78376c11908ddecb99d6e (patch)
tree32c9f8cbec4a7384a3eda5d6c8c237a46fa246dd /libglusterfs
parent6df883cef3e69b37a192aae9e979f95b32f8ad41 (diff)
nsr-server: fix (?) ENODATA problem on FreeBSD
Change-Id: I5f16a04e34a37e1f4cef38d75aff3479429473e3 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.org/13625 Tested-by: Avra Sengupta <asengupt@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Avra Sengupta <asengupt@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/compat-errno.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/compat-errno.h b/libglusterfs/src/compat-errno.h
index 6f46157e697..5ee1d18f823 100644
--- a/libglusterfs/src/compat-errno.h
+++ b/libglusterfs/src/compat-errno.h
@@ -217,6 +217,11 @@
#define EBADFD EBADRPC
#endif /* EBADFD */
+#if !defined(ENODATA)
+/* This happens on FreeBSD. Value borrowed from Linux. */
+#define ENODATA 61
+#endif
+
/* These functions are defined for all the OS flags, but content will
* be different for each OS flag.
*/