Comment #10 on issue 248 by ken...@google.com: protobuf will not compile without thread library
http://code.google.com/p/protobuf/issues/detail?id=248

You will need to modify the protobuf code slightly, but it should be easy. Find the places that use pthread (there aren't many of them) and replace them with code appropriate for a single-threaded context. You can just delete the mutex lock/unlock calls. For pthread_once, you'll need to make the "once" type just contain a boolean flag and have the once-init call return if the flag is already set, otherwise call the callback and then set the flag.

If someone wants to write a patch implementing a --without-thread-safety configure option that does this automatically, go for it...

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to