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.
This commit is contained in:
Руслан Ижбулатов 2019-04-07 18:41:39 +00:00
parent 9d43bfc4ed
commit 7a399e859d

View File

@ -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;