mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02: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)
|
__getcmdline (void)
|
||||||
{
|
{
|
||||||
/* This code is a dumbed-down version of g_file_get_contents() */
|
/* This code is a dumbed-down version of g_file_get_contents() */
|
||||||
|
#ifndef O_BINARY
|
||||||
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
#define BUFSIZE 1024
|
#define BUFSIZE 1024
|
||||||
char result[BUFSIZE];
|
char result[BUFSIZE];
|
||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user