util: clean up two #ifs

Use defined(...) in two instances to avoid warnings.

Change-Id: I0a574283e2384c7cfb2f58884570e78e3fed3bc6
Requested-by: Simon Wilkinson
Reviewed-on: http://gerrit.openafs.org/5005
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Garrett Wollman 2011-07-13 14:20:17 -04:00 committed by Derrick Brashear
parent 1f181307d5
commit df4843c4b1
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ extern int parseNetFiles(afs_uint32 addrbuf[], afs_uint32 maskbuf[],
/* pthread_threadname.c */ /* 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(pthread_t thread, const char *threadname);
extern void afs_pthread_setname_self(const char *threadname); extern void afs_pthread_setname_self(const char *threadname);
#elif defined(AFS_NT40_ENV) #elif defined(AFS_NT40_ENV)

View File

@ -28,7 +28,7 @@
#include "afsutil.h" #include "afsutil.h"
#if AFS_PTHREAD_ENV && !defined(AFS_NT40_ENV) #if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV)
# include <pthread.h> # include <pthread.h>
# ifdef HAVE_PTHREAD_NP_H # ifdef HAVE_PTHREAD_NP_H
# include <pthread_np.h> # include <pthread_np.h>