summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/compat-errno.h5
-rw-r--r--xlators/experimental/nsr-server/src/nsr.c1
2 files changed, 6 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.
*/
diff --git a/xlators/experimental/nsr-server/src/nsr.c b/xlators/experimental/nsr-server/src/nsr.c
index 0c494b78125..48966ab15a1 100644
--- a/xlators/experimental/nsr-server/src/nsr.c
+++ b/xlators/experimental/nsr-server/src/nsr.c
@@ -23,6 +23,7 @@
#include "common-utils.h"
#include "syncop.h"
#include "syscall.h"
+#include "compat-errno.h"
#include "nsr-internal.h"
#include "nsr-messages.h"