aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/bison/lib/binary-io.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-06-09 17:46:41 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-06-09 17:55:07 +0300
commit0d86049b43a82faa56ca2314d64d8c3e9508a61b (patch)
tree63c7c78712207fc39e5283f6f93c9366723706c0 /contrib/tools/bison/lib/binary-io.h
parentdc2056233ab4b16a84dcea43f683eaa0df0a720a (diff)
downloadydb-0d86049b43a82faa56ca2314d64d8c3e9508a61b.tar.gz
Flatten posix-specific headers in bison/lib (gnulib)
Also: switch configs to platform_dispatchers. 82894b183119eb953ffd9eb90de5d6bf29ffed9a
Diffstat (limited to 'contrib/tools/bison/lib/binary-io.h')
-rw-r--r--contrib/tools/bison/lib/binary-io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/tools/bison/lib/binary-io.h b/contrib/tools/bison/lib/binary-io.h
index 423c2ae3ff..256c23a0ea 100644
--- a/contrib/tools/bison/lib/binary-io.h
+++ b/contrib/tools/bison/lib/binary-io.h
@@ -25,6 +25,14 @@
so we include it here first. */
#include <stdio.h>
+#ifndef O_BINARY
+ #define O_BINARY 0
+#endif
+
+#ifndef O_TEXT
+ #define O_TEXT 0
+#endif
+
#ifndef _GL_INLINE_HEADER_BEGIN
#error "Please include config.h first."
#endif