aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-06-18 00:42:26 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-06-18 00:54:57 +0300
commit48b20a3fd14d7be1800c37a6ddd0e905fedd3a40 (patch)
treed09aaef30fd251752e03faf586d96cf01181ac36 /contrib/tools/bison
parentee79f45c55f10fbaf591b5e0c51df7666c74b73c (diff)
downloadydb-48b20a3fd14d7be1800c37a6ddd0e905fedd3a40.tar.gz
Restore one bison patch
bison was broken on macOS in rXXXXXX f783cfcb7ea1e42c78e77b568091234050b15475
Diffstat (limited to 'contrib/tools/bison')
-rw-r--r--contrib/tools/bison/lib/obstack.h4
-rw-r--r--contrib/tools/bison/lib/obstack_printf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/contrib/tools/bison/lib/obstack.h b/contrib/tools/bison/lib/obstack.h
index 7cf98edbd2..046fc58546 100644
--- a/contrib/tools/bison/lib/obstack.h
+++ b/contrib/tools/bison/lib/obstack.h
@@ -511,4 +511,8 @@ __extension__ \
} /* C++ */
#endif
+#if !defined(obstack_printf)
+int obstack_printf(struct obstack *obs, const char *format, ...);
+#endif
+
#endif /* obstack.h */
diff --git a/contrib/tools/bison/lib/obstack_printf.c b/contrib/tools/bison/lib/obstack_printf.c
index 6e34cc1b34..291dcd52a4 100644
--- a/contrib/tools/bison/lib/obstack_printf.c
+++ b/contrib/tools/bison/lib/obstack_printf.c
@@ -26,6 +26,8 @@
#include <stdarg.h>
#include <stdlib.h>
+int obstack_vprintf(struct obstack *obs, const char *format, va_list args);
+
/* Grow an obstack with formatted output. Return the number of bytes
added to OBS. No trailing nul byte is added, and the object should
be closed with obstack_finish before use.