#67452 closed defect (fixed)

libfaketime @0.9.7: build fails on macOS <=10.6 due to undeclared O_CLOEXEC

Reported by: Cebtenzzre Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libfaketime

Description

:info:build /opt/local/bin/clang-mp-7.0 -o libfaketime.1.dylib -arch i386 -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"' -arch i386 -dynamiclib -current_version 0.9.7 -compatibility_version 0.7 -install_name /opt/local/lib/faketime/libfaketime.1.dylib libfaketime.c 
:info:build /opt/local/bin/clang-mp-7.0 -o faketime -arch i386 -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'/opt/local'"' -arch i386 faketime.c 
:info:build libfaketime.c:1844:60: error: use of undeclared identifier 'O_CLOEXEC' 
:info:build     if (-1 == (outfile = open(tmp_env, O_RDWR | O_APPEND | O_CLOEXEC | O_CREAT, 
:info:build                                                            ^ 
:info:build libfaketime.c:1857:48: error: use of undeclared identifier 'O_CLOEXEC' 
:info:build     if (-1 == (infile = open(tmp_env, O_RDONLY|O_CLOEXEC))) 
:info:build                                                ^ 
:info:build 2 errors generated. 
:info:build make[1]: *** [libfaketime.1.dylib] Error 1

O_CLOEXEC is only available as of the Mac OS X 10.7 SDK.

Change History (2)

comment:1 Changed 18 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:2 Changed 18 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 06c793df1cde1faf718a493e84e6de936d27a53a/macports-ports (master):

libfaketime: add legacysupport for O_CLOEXEC; patch clock defs
Fixes: #67452

Note: See TracTickets for help on using tickets.