mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
9d43bfc4ed
commit
7a399e859d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user