Here is a straightforward change to resolve name conflict between fexecve(2) and same named function in smake sources: .if ${OSVERSION} >= 800032 post-patch: @${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} \ -e 's/fexecve/fexecve_bsd/' .endif OSVERSION condition is actually not necessary, I kept it just for clarity. -- Andriy Gapon