aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-20 23:17:38 +0100
committerlemon <lsof@mailbox.org>2026-03-20 23:17:38 +0100
commit7b498fbe343b9cb4c01cac10e09d72a3cf889837 (patch)
treea02a2a8986723a994c881aab882e97c0e620a274
parentfac6e1384ed858c922241b1435f8d9efda2bf564 (diff)
fix again for openbsd
-rwxr-xr-xconfigure6
-rw-r--r--src/a_embedfilesdir.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 43c7ad0..344e4fe 100755
--- a/configure
+++ b/configure
@@ -57,7 +57,7 @@ test -n "$host" || die "cannot determine host"
host_arch=
host_os=
-host_abi=
+host_abi=none
host_predefs=
echo "host: $host"
@@ -123,8 +123,8 @@ case "$host" in
DYNAMIC_LINKER=$sysroot/usr/libexec/ld.so
ldstartfiles='"-l:crt0.o", "-l:crtbegin.o"'
ldendfiles='"-lc", "-l:crtend.o"'
- ldstartfiles_pie='"-l:crt0.o", "-l:crtbeginS.o"'
- ldendfiles_pie='"-lc", "-l:crtendS.o"'
+ ldstartfiles_pie="$ldstartfiles"
+ ldendfiles_pie="$ldendfiles"
linkflags='"-L'$sysroot'/usr/lib"'
host_predefs='
"_ANSI_LIBRARY", /* works around __only_inline functions in libc headers */
diff --git a/src/a_embedfilesdir.c b/src/a_embedfilesdir.c
index c7fd706..da6a9cb 100644
--- a/src/a_embedfilesdir.c
+++ b/src/a_embedfilesdir.c
@@ -13,7 +13,7 @@ typedef __typeof__((char*)0 - (char*)0) ptrdiff_t;\n\
typedef __typeof__(sizeof 0) size_t;\n\
typedef __typeof__(L'a') wchar_t;\n\
#undef NULL\n\
-#define NULL ((void *)0)\n\
+#define NULL ((void*)0)\n\
#undef offsetof\n\
#define offsetof(type, memb) ((size_t)((char *)&((type *)0)->memb - (char *)0))\n\
")},