summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-22 11:00:37 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-22 11:19:20 -0400
commitf133d71fc49a6ae2ddd64c73e630227e1e7a9ba5 (patch)
treef871b62fb10251f72b43534ff38e310a9df32162 /config
parent4b8669f968aae6dc0267c8d46ef265432c681b46 (diff)
downloadbfs-f133d71fc49a6ae2ddd64c73e630227e1e7a9ba5.tar.xz
fsade: Implement ACL detection on Illumos
Diffstat (limited to 'config')
-rw-r--r--config/acl-is-trivial-np.c1
-rw-r--r--config/acl-trivial.c8
-rw-r--r--config/flags.mk2
-rw-r--r--config/header.mk1
4 files changed, 11 insertions, 1 deletions
diff --git a/config/acl-is-trivial-np.c b/config/acl-is-trivial-np.c
index 4178238..9ca9fc7 100644
--- a/config/acl-is-trivial-np.c
+++ b/config/acl-is-trivial-np.c
@@ -1,6 +1,7 @@
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD
+#include <sys/types.h>
#include <sys/acl.h>
int main(void) {
diff --git a/config/acl-trivial.c b/config/acl-trivial.c
new file mode 100644
index 0000000..7efc838
--- /dev/null
+++ b/config/acl-trivial.c
@@ -0,0 +1,8 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+#include <sys/acl.h>
+
+int main(void) {
+ return acl_trivial(".");
+}
diff --git a/config/flags.mk b/config/flags.mk
index 8a2e50e..ee13f06 100644
--- a/config/flags.mk
+++ b/config/flags.mk
@@ -45,7 +45,7 @@ export BFS_CFLAGS= -std=c17 -pthread
LDLIBS,DragonFly := -lposix1e
LDLIBS,Linux := -lrt
LDLIBS,NetBSD := -lutil
-LDLIBS,SunOS := -lsocket -lnsl
+LDLIBS,SunOS := -lsec -lsocket -lnsl
export BFS_LDLIBS=${LDLIBS,${OS}}
# Build profiles
diff --git a/config/header.mk b/config/header.mk
index 5da0629..7fd2f78 100644
--- a/config/header.mk
+++ b/config/header.mk
@@ -13,6 +13,7 @@ HEADERS := \
${GEN}/acl-get-file.h \
${GEN}/acl-get-tag-type.h \
${GEN}/acl-is-trivial-np.h \
+ ${GEN}/acl-trivial.h \
${GEN}/aligned-alloc.h \
${GEN}/confstr.h \
${GEN}/extattr-get-file.h \