diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-06-15 09:49:15 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-07-09 05:39:33 -0700 |
commit | 6ee9d105695e4fd8ea86d8c173b234e2df12eb51 (patch) | |
tree | 8a1fb88febe23c6f5c924825c421c009b5fe17eb /libglusterfs/src/compat.c | |
parent | a091f75386fee1499553546e4e6849dabec77338 (diff) |
Switch to GNU basename_r() and dirname_r()
This is a backport of Change-Id Ic9a159fffdc7bacc9408f8e90854e4c2db81930c
and Id874b9c7aacd9aa3a7a4bd6a92a9633f5b2d6ac0
BUG: 764655
Change-Id: I51aac601fb4cc9a0d87afcab2240dc7a1d131c93
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.com/3576
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/compat.c')
-rw-r--r-- | libglusterfs/src/compat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/compat.c b/libglusterfs/src/compat.c index 2dcd56a4144..99a0041a5cf 100644 --- a/libglusterfs/src/compat.c +++ b/libglusterfs/src/compat.c @@ -550,3 +550,10 @@ strnlen(const char *string, size_t maxlen) return len; } #endif /* STRNLEN */ + +#ifdef THREAD_UNSAFE_BASENAME +#include "../../contrib/libgen/basename_r.c" +#endif +#ifdef THREAD_UNSAFE_DIRNAME +#include "../../contrib/libgen/dirname_r.c" +#endif |