summaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/lib
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2024-10-21 11:10:39 +0300
committerthegeorg <[email protected]>2024-10-21 11:22:50 +0300
commit73a97f8c926a19e65e72d70448ffa34b7281f1bd (patch)
tree533c635ff4f07a8c5a16c5822637ec63fca78a0e /contrib/tools/bison/lib
parent16802cd0532abd2c6e750aa8a3254ba12173c65a (diff)
Fix building contrib/tools/{bison,m4} with musl-libc
Also: put devstack_targets.inc under musl autocheck. commit_hash:a824666c706272699d21127ad3d73694357f07ae
Diffstat (limited to 'contrib/tools/bison/lib')
-rw-r--r--contrib/tools/bison/lib/config-musl.h2
-rw-r--r--contrib/tools/bison/lib/ya.make15
2 files changed, 15 insertions, 2 deletions
diff --git a/contrib/tools/bison/lib/config-musl.h b/contrib/tools/bison/lib/config-musl.h
index d8ad04c19ef..41777d40f28 100644
--- a/contrib/tools/bison/lib/config-musl.h
+++ b/contrib/tools/bison/lib/config-musl.h
@@ -1,3 +1,5 @@
#define HAVE_SYS_TIMES_H 1
#define HAVE_STRUCT_TMS 1
#define HAVE_CLOCK_T 1
+
+#define _GL_ARG_NONNULL(...)
diff --git a/contrib/tools/bison/lib/ya.make b/contrib/tools/bison/lib/ya.make
index da1aacbe5c7..38ca9b01203 100644
--- a/contrib/tools/bison/lib/ya.make
+++ b/contrib/tools/bison/lib/ya.make
@@ -60,7 +60,6 @@ SRCS(
fd-safer-flag.c
fd-safer.c
fopen-safer.c
- fseterr.c
fstrcmp.c
get-errno.c
gethrxtime.c
@@ -121,7 +120,19 @@ SRCS(
xtime.c
)
-IF (OS_DARWIN)
+IF (NOT MUSL)
+ SRCS(
+ fseterr.c
+ )
+ENDIF()
+
+IF (MUSL)
+ SRCS(
+ error.c
+ obstack.c
+ obstack_printf.c
+ )
+ELSEIF (OS_DARWIN)
SRCS(
error.c
fpending.c