mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
1f181307d5
commit
df4843c4b1
@ -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)
|
||||
|
@ -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 <pthread.h>
|
||||
# ifdef HAVE_PTHREAD_NP_H
|
||||
# include <pthread_np.h>
|
||||
|
Loading…
Reference in New Issue
Block a user