# any openbsd version dependencies with pthreads?
ccflags="-pthread $ccflags"
ldflags="-pthread $ldflags"
+ case "$osvers" in
+ [0-2].*|3.[0-2])
+ # Change from -lc to -lc_r
+ set `echo "X $libswanted " | sed 's/ c / c_r /'`
+ shift
+ libswanted="$*"
+ ;;
+ esac
+ case "$osvers" in
+ [012].*|3.[0-3])
+ # Broken at least up to OpenBSD 3.2, we'll see about 3.3.
+ d_getservbyname_r=$undef ;;
+ esac
esac
EOCBU