jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
328 stars 45 forks source link

Building on OpenBSD #61

Open ottob opened 13 years ago

ottob commented 13 years ago

Hello,

I'm trying to build 0.16 on OpenBSD but got the following error: db.c:269: error: thread-local storage not supported for this target

So it seems like thread local storage is not supported on OpenBSD (and OSX). But from what I can read[1] it can be replaced with pthread_getspecific() and pthread_setspecific() instead. I'm not a C programmer so unfortunately I cannot try this myself. Can you change this, it looks like __thread is only used in this one place of forked-daapd.

[1] https://github.com/buytenh/ivykis/commit/51252ad69def45a4b77156add50c617e6d3dd43a