diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-10-28 19:25:38 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2020-10-29 10:59:23 +0000 |
commit | e032ca7a88afe1a7cd028ca63e2993af9c0b91af (patch) | |
tree | 0875b3c22c1147aa8e6c1e2e69fc497aecb9b453 /lib/fuse_misc.h | |
parent | 4ebb018e78b53a8afe0368e7cd7a17a67c52e3df (diff) | |
download | libfuse-e032ca7a88afe1a7cd028ca63e2993af9c0b91af.tar.gz |
remove fuse_mutex_init
This seems to have been added before 2006 to fix a uclibc bug. It
doesn't seem to be the case anymore so just get rid of it.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'lib/fuse_misc.h')
-rw-r--r-- | lib/fuse_misc.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/fuse_misc.h b/lib/fuse_misc.h index f384aea..f956ab7 100644 --- a/lib/fuse_misc.h +++ b/lib/fuse_misc.h @@ -22,20 +22,6 @@ #define FUSE_SYMVER(sym1, sym2) #endif -#ifndef USE_UCLIBC -#define fuse_mutex_init(mut) pthread_mutex_init(mut, NULL) -#else -/* Is this hack still needed? */ -static inline void fuse_mutex_init(pthread_mutex_t *mut) -{ - pthread_mutexattr_t attr; - pthread_mutexattr_init(&attr); - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); - pthread_mutex_init(mut, &attr); - pthread_mutexattr_destroy(&attr); -} -#endif - #ifdef HAVE_STRUCT_STAT_ST_ATIM /* Linux */ #define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec) |