SAP Open Server uses POSIX threads.
When you use threaded libraries (*_r), link with the pthreads library.
See the Open Client and Open Server Programmers Supplement for UNIX for information on Open Client libraries.