electronicarts/EASTL

Tests fail to compile: error: use of undeclared identifier 'getpid'

yurivict opened this issue · 0 comments

In file included from /usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/eathread_thread.cpp:18:
/usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/unix/eathread_thread_unix.cpp:547:28: error: use of undeclared identifier 'getpid'
        pTDD->mThreadPid = getpid(); // We can't set a thread affinity with a process id. 
                           ^
/usr/ports/devel/eastl/work/EASTL-3.21.12/test/packages/EAThread/source/unix/eathread_thread_unix.cpp:611:28: error: use of undeclared identifier 'getpid'
        pTDD->mThreadPid = getpid(); // We can't set a thread affinity with a process id. 
                           ^
2 errors generated.

This module needs #include <unistd.h>.

Version: 3.21.12
FreeBSD 13.2