Whamcloud - gitweb
LU-2044 libcfs: fix to build libcfs without pthreads
authorJames Simmons <uja.ornl@gmail.com>
Fri, 28 Sep 2012 12:14:20 +0000 (08:14 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Oct 2012 04:45:18 +0000 (00:45 -0400)
commit493210bf9e0f65a2608ebeeefac6f4316a959c81
tree5d50ef6228ff4228e4054e8fa130c54868c50db9
parentfb33192c48a7f4cb9094f435e7647dc17658f5ac
LU-2044 libcfs: fix to build libcfs without pthreads

Currently libcfs fails to build on systems without pthreads
in the libcfs_lock code with its pseudo lock implementation.
Instead of creating a phony address pointer we create a real
static lock and test the pointer to it. The compiler is much
more happy with this approach.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: Ia66d0972951afbfe9bc69a6375d57e6a13ae4e43
Reviewed-on: http://review.whamcloud.com/4121
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_private.h
libcfs/libcfs/libcfs_lock.c