Skip to content

gspawn: Fix build on systems without O_CLOEXEC

Ryan Schmidt requested to merge ryandesign/glib:O_CLOEXEC into master

On an old OS without O_CLOEXEC, building glib 2.58.0 fails with:

gspawn.c: In function ‘do_posix_spawn’:
gspawn.c:1488: error: ‘read_null’ undeclared (first use in this function)
gspawn.c:1488: error: (Each undeclared identifier is reported only once
gspawn.c:1488: error: for each function it appears in.)

I believe this was caused by typos in the fix for #1488 (closed) committed in 4afe429d, which this merge request fixes.

Merge request reports