[Lcdproc] lis driver fails to compile
Rene Wagner
rw@nelianur.org
Thu Nov 1 20:54:01 2007
On Thu, 2007-11-01 at 20:41 +0100, Peter Marschall wrote:
> is there a chance to get the lis driver working without that clone() call
> that seems to only exist in Linux?
clone() essentially creates the equivalent of a thread. It should be
possible to implement similar semantics using POSIX threads.
Chances are the following will work:
#include <pthread.h>
/*...*/
pthread_t read_thread;
/*...*/
err = pthread_create(&read_thread, NULL, lis_read_thread, (void *)
drvthis);
/*...*/
Note that this may need additional linker flags to link against
libpthread.
Regards,
Rene