summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2019-04-07 18:41:39 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2019-04-07 18:41:39 +0000
commit7a399e859d80d5d8ae1be9b119dc43a2f2eebe93 (patch)
tree4a6735d6ae5e55b43130e00caa902211f4fb82b2
parent9d43bfc4ed12fc940a046564b00dac2fecfdd0f9 (diff)
downloadglib-7a399e859d80d5d8ae1be9b119dc43a2f2eebe93.tar.gz
Fix the "/proc/self/cmdline" test
Add a missing ifdef from gfileutils.c that is needed for O_BINARY. The other option was to remove O_BINARY, but i left it there for the sake of completeness, as this is what g_file_get_contents() uses.
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 64392a556..b80264759 100644
--- a/meson.build
+++ b/meson.build
@@ -1910,6 +1910,9 @@ static int
__getcmdline (void)
{
/* This code is a dumbed-down version of g_file_get_contents() */
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
#define BUFSIZE 1024
char result[BUFSIZE];
struct stat stat_buf;