diff --git a/src/util/afsutil_prototypes.h b/src/util/afsutil_prototypes.h index ded6e666da..58c7b6acc6 100644 --- a/src/util/afsutil_prototypes.h +++ b/src/util/afsutil_prototypes.h @@ -149,7 +149,7 @@ extern int parseNetFiles(afs_uint32 addrbuf[], afs_uint32 maskbuf[], /* pthread_threadname.c */ -#if AFS_PTHREAD_ENV && !defined(AFS_NT40_ENV) +#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV) extern void afs_pthread_setname(pthread_t thread, const char *threadname); extern void afs_pthread_setname_self(const char *threadname); #elif defined(AFS_NT40_ENV) diff --git a/src/util/pthread_threadname.c b/src/util/pthread_threadname.c index 1c6827209e..fbb2b8048d 100644 --- a/src/util/pthread_threadname.c +++ b/src/util/pthread_threadname.c @@ -28,7 +28,7 @@ #include "afsutil.h" -#if AFS_PTHREAD_ENV && !defined(AFS_NT40_ENV) +#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV) # include # ifdef HAVE_PTHREAD_NP_H # include