Allow compiling with KERNEL and AFS_PTHREAD_ENV
authorBenjamin Kaduk <kaduk@mit.edu>
Wed, 15 Oct 2014 19:03:36 +0000 (15:03 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 5 Nov 2014 18:56:18 +0000 (13:56 -0500)
commit7583f97d5f19aa2d207f8a35a1a3a8b76f672e30
tree25c346d515de14107a8af40866788587530513ba
parenta55d61b1f5206d4e8dffca0088e31c54836110f9
Allow compiling with KERNEL and AFS_PTHREAD_ENV

Add the necessary preprocessor conditionals to allow building
libuafs with AFS_PTHREAD_ENV defined.

A follow-up commit will switch to building libuafs using libtool,
which will set the pthread compiler/linker flags.  UKERNEL is already
using the pthread primitives for its internal kernel synchronization,
so there should not be any harm from additionally specifying the
pthread build arguments.

This change was produced mostly in a mechanical fashion, attempting
to perform such a build, and eliminating compiler and linker errors
in an iterative process.  No concerted effort has been made to audit
the whole kernel codebase for correctness of conditionals, but the
linktest executable does link (that is, the overall build succeeds).

Change-Id: I14a3ab5fce72812d92ba5657c734783dbd086ee3
Reviewed-on: http://gerrit.openafs.org/11546
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/rx/rx.c
src/rx/rx_globals.h
src/rxkad/rxkad_common.c
src/rxkad/stats.h
src/util/pthread_glock.h