summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-07-20 04:24:34 +0200
committerMike Frysinger <vapier@gentoo.org>2022-11-12 21:41:19 +0700
commit79cebdbea8d8c7d8b89ebbd5d259d341139dec01 (patch)
tree439d90042f506d0d87ba55a188d77f8edcc9700b
parent65c5d72e311294dcf823a35bb195ed7241845537 (diff)
downloadacl-79cebdbea8d8c7d8b89ebbd5d259d341139dec01.tar.gz
Define ENODATA if it is not defined
On GNU/kFreeBSD ENODATA is not defined, so we need to define it instead to ENOATTR which is defined there. This is a regression from the upstream build system modernization. Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r--libacl/libacl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libacl/libacl.h b/libacl/libacl.h
index 9e7d75f..4040b9a 100644
--- a/libacl/libacl.h
+++ b/libacl/libacl.h
@@ -25,6 +25,9 @@
#ifndef ENOATTR
# define ENOATTR ENODATA
#endif
+#ifndef ENODATA
+# define ENODATA ENOATTR
+#endif
typedef unsigned int permset_t;