Failure on FreeBSD: error: use of undeclared identifier 'WIFEXITED'

Issue #142 resolved
Yuri Vic created an issue
/usr/ports/graphics/art/work/agriggio-art-b2d77c8f0080/rtengine/subprocess.cc:285:15: error: use of undeclared identifier 'WIFEXITED'
        if (!(WIFEXITED(exit_status) && WEXITSTATUS(exit_status) == 0)) {
              ^
/usr/ports/graphics/art/work/agriggio-art-b2d77c8f0080/rtengine/subprocess.cc:285:41: error: use of undeclared identifier 'WEXITSTATUS'
        if (!(WIFEXITED(exit_status) && WEXITSTATUS(exit_status) == 0)) {
                                        ^
6 warnings and 2 errors generated.
sys/wait.h needs to be included:
$ grep -r WIFEXITED /usr/include/
/usr/include/sys/wait.h:#define WIFEXITED(x)    (_WSTATUS(x) == 0)

Comments (3)

  1. agriggio repo owner

    Thanks for reporting. However, I cannot commit to supporting BSD, I just don’t have the manpower to do that. Patches are welcome though…

  2. Log in to comment