On Mon, Sep 28, 2009 at 9:42 PM, Nathan Stratton Treadway <natha...@ontko.com> wrote: > As you say, having this extra call shouldn't really hurt anything, but I > wondering if it would make sense to tweak the #ifdef so that is possible > to compile Amanda on OpenBSD without having to include the work-around > even in environments where it's not necessary (e.g. when using the new > theading library you mention)?
I wouldn't mind doing this, but it's only six fcntl() calls on startup, so the cost really is negligible. > (For example, does Configure generate any particular #define related to > the use of the pthread library?) I don't know a good way to do this -- the best I can think of is to check GLIB_LDFLAGS for /pthread/, but I don't know if OpenBSD compiles require that pthread be listed explicitly on the link line when compiling against libgthread. It would help if I had an OpenBSD system handy.. When a version of OpenBSD is released where this is no longer an issue (5.0?), we can conditionalize it on that version. Dustin -- Open Source Storage Engineer http://www.zmanda.com