By removing "inline" from void _lthread_renice(struct lthread *lt) fixes compiling (see build error below) on MacOSX. I edited src/lthread_int.h and removed the inline keyword.
Performed a cmake .; make and it worked great.
Might be worth removing inline or adding preprocessor condition for MacOSX.
--Build Error--------------------
[ 11%] Building C object CMakeFiles/lthread.dir/src/lthread_socket.c.o
In file included from /Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_socket.c:42:
/Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_int.h:184:13: error: inline function '_lthread_renice' is not defined [-Werror,-Wundefined-inline]
inline void _lthread_renice(struct lthread *lt);
^
/Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_socket.c:147:9: note: used here
_lthread_renice(lt);
^
1 error generated.
By removing "inline" from void _lthread_renice(struct lthread *lt) fixes compiling (see build error below) on MacOSX. I edited src/lthread_int.h and removed the inline keyword.
Performed a cmake .; make and it worked great.
Might be worth removing inline or adding preprocessor condition for MacOSX.
--Build Error-------------------- [ 11%] Building C object CMakeFiles/lthread.dir/src/lthread_socket.c.o In file included from /Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_socket.c:42: /Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_int.h:184:13: error: inline function '_lthread_renice' is not defined [-Werror,-Wundefined-inline] inline void _lthread_renice(struct lthread *lt); ^ /Users/user/Projects/coroutines/lthread/lthread-master/src/lthread_socket.c:147:9: note: used here _lthread_renice(lt); ^ 1 error generated.