diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-06-18 00:42:26 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-06-18 00:54:57 +0300 |
commit | 48b20a3fd14d7be1800c37a6ddd0e905fedd3a40 (patch) | |
tree | d09aaef30fd251752e03faf586d96cf01181ac36 | |
parent | ee79f45c55f10fbaf591b5e0c51df7666c74b73c (diff) | |
download | ydb-48b20a3fd14d7be1800c37a6ddd0e905fedd3a40.tar.gz |
Restore one bison patch
bison was broken on macOS in rXXXXXX
f783cfcb7ea1e42c78e77b568091234050b15475
-rw-r--r-- | contrib/tools/bison/lib/obstack.h | 4 | ||||
-rw-r--r-- | contrib/tools/bison/lib/obstack_printf.c | 2 |
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. |