summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-09-30 11:42:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-10-01 11:04:23 -0400
commit5caa4066232c8d615bb95af2e5d8e9b342a0f653 (patch)
tree726d9da27444ea840e6499272e817d75e8ec8f47 /src
parent90791fc54affb18119e8403efc9320a2a59c9d09 (diff)
downloadbfs-5caa4066232c8d615bb95af2e5d8e9b342a0f653.tar.xz
build: Add -Wundef-prefix=BFS_
Diffstat (limited to 'src')
-rw-r--r--src/bfs.h5
-rw-r--r--src/fsade.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/bfs.h b/src/bfs.h
index 91c6540..ad6a628 100644
--- a/src/bfs.h
+++ b/src/bfs.h
@@ -33,10 +33,15 @@
#ifndef BFS_COMMAND
# define BFS_COMMAND "bfs"
#endif
+
#ifndef BFS_HOMEPAGE
# define BFS_HOMEPAGE "https://tavianator.com/projects/bfs.html"
#endif
+#ifndef BFS_LINT
+# define BFS_LINT false
+#endif
+
// This is a symbol instead of a literal so we don't have to rebuild everything
// when the version number changes
extern const char bfs_version[];
diff --git a/src/fsade.c b/src/fsade.c
index 30b3018..dfdf125 100644
--- a/src/fsade.c
+++ b/src/fsade.c
@@ -36,6 +36,13 @@
# define BFS_USE_XATTR true
#endif
+#ifndef BFS_USE_EXTATTR
+# define BFS_USE_EXTATTR false
+#endif
+#ifndef BFS_USE_XATTR
+# define BFS_USE_XATTR false
+#endif
+
/**
* Many of the APIs used here don't have *at() variants, but we can try to
* emulate something similar if /proc/self/fd is available.