summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/flags.mk1
-rw-r--r--build/flags/Wundef-prefix.c (renamed from build/has/aligned-alloc.c)5
-rw-r--r--build/has/timer-create.c9
-rw-r--r--build/header.mk2
-rw-r--r--build/prelude.mk13
-rwxr-xr-xbuild/version.sh2
6 files changed, 16 insertions, 16 deletions
diff --git a/build/flags.mk b/build/flags.mk
index 1421ce6..2562e03 100644
--- a/build/flags.mk
+++ b/build/flags.mk
@@ -88,6 +88,7 @@ AUTO_FLAGS := \
gen/flags/Wshadow.mk \
gen/flags/Wsign-compare.mk \
gen/flags/Wstrict-prototypes.mk \
+ gen/flags/Wundef-prefix.mk \
gen/flags/bind-now.mk \
gen/flags/deps.mk
diff --git a/build/has/aligned-alloc.c b/build/flags/Wundef-prefix.c
index 4460038..3eaf82b 100644
--- a/build/has/aligned-alloc.c
+++ b/build/flags/Wundef-prefix.c
@@ -1,8 +1,9 @@
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD
-#include <stdlib.h>
+/// _CPPFLAGS += -Wundef-prefix=BFS_
+/// -Werror
int main(void) {
- return !aligned_alloc(_Alignof(void *), sizeof(void *));
+ return 0;
}
diff --git a/build/has/timer-create.c b/build/has/timer-create.c
new file mode 100644
index 0000000..d5354c3
--- /dev/null
+++ b/build/has/timer-create.c
@@ -0,0 +1,9 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+#include <time.h>
+
+int main(void) {
+ timer_t timer;
+ return timer_create(CLOCK_REALTIME, NULL, &timer);
+}
diff --git a/build/header.mk b/build/header.mk
index abec00f..e9f1abc 100644
--- a/build/header.mk
+++ b/build/header.mk
@@ -18,7 +18,6 @@ HEADERS := \
gen/has/acl-get-tag-type.h \
gen/has/acl-is-trivial-np.h \
gen/has/acl-trivial.h \
- gen/has/aligned-alloc.h \
gen/has/builtin-riscv-pause.h \
gen/has/confstr.h \
gen/has/extattr-get-file.h \
@@ -52,6 +51,7 @@ HEADERS := \
gen/has/strtofflags.h \
gen/has/tcgetwinsize.h \
gen/has/timegm.h \
+ gen/has/timer-create.h \
gen/has/tm-gmtoff.h \
gen/has/uselocale.h
diff --git a/build/prelude.mk b/build/prelude.mk
index b8726d7..c25dea4 100644
--- a/build/prelude.mk
+++ b/build/prelude.mk
@@ -37,7 +37,7 @@ RM ?= rm -f
# VAR=1 ${TRUTHY,${VAR}} => ${TRUTHY,1} => y
# VAR=n ${TRUTHY,${VAR}} => ${TRUTHY,n} => [empty]
# VAR=other ${TRUTHY,${VAR}} => ${TRUTHY,other} => [empty]
-# VAR= ${TRUTHY,${VAR}} => ${TRUTHY,} => [emtpy]
+# VAR= ${TRUTHY,${VAR}} => ${TRUTHY,} => [empty]
#
# Inspired by https://github.com/wahern/autoguess
TRUTHY,y := y
@@ -68,14 +68,3 @@ ALL_PKGS := \
libselinux \
liburing \
oniguruma
-
-# List all object files here, as they're needed by both `./configure` and `make`
-
-# All object files
-OBJS := \
- obj/src/main.o \
- obj/tests/mksock.o \
- obj/tests/xspawnee.o \
- obj/tests/xtouch.o \
- ${LIBBFS} \
- ${UNIT_OBJS}
diff --git a/build/version.sh b/build/version.sh
index a14e996..ba5447f 100755
--- a/build/version.sh
+++ b/build/version.sh
@@ -14,5 +14,5 @@ if [ "${VERSION-}" ]; then
elif [ -e "$DIR/.git" ] && command -v git >/dev/null 2>&1; then
git -C "$DIR" describe --always --dirty
else
- echo "4.0.1"
+ echo "4.0.4"
fi