From: Andrew Deason Date: Thu, 14 Jul 2011 19:53:00 +0000 (-0500) Subject: util: Include pthread.h in afsutil_prototypes.h X-Git-Tag: upstream/1.8.0_pre1^2~3527 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=20a2422c1479476acd407bae9345ea6482aeca3b;p=packages%2Fo%2Fopenafs.git util: Include pthread.h in afsutil_prototypes.h afsutil_prototypes.h can reference pthread_t when we are in AFS_PTHREAD_ENV. So, include pthread.h to guarantee we get the definition for pthread_t. Change-Id: Ib46c2cf3b3fdd2dcd61a7b8ac4d5512fecd084ff Reviewed-on: http://gerrit.openafs.org/5023 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear --- diff --git a/src/util/afsutil_prototypes.h b/src/util/afsutil_prototypes.h index 150538623..ded6e666d 100644 --- a/src/util/afsutil_prototypes.h +++ b/src/util/afsutil_prototypes.h @@ -10,6 +10,10 @@ #ifndef _AFSUTIL_PROTOTYPES_H #define _AFSUTIL_PROTOTYPES_H +#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV) +# include +#endif + /* afs_atomlist.c */