summaryrefslogtreecommitdiff
path: root/src/thread-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread-utils.h')
-rw-r--r--src/thread-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h
index f8ed08a88..99228417f 100644
--- a/src/thread-utils.h
+++ b/src/thread-utils.h
@@ -9,7 +9,7 @@ typedef pthread_mutex_t git_lck;
# define gitlck_unlock(a) pthread_mutex_unlock(a)
# define gitlck_free(a) pthread_mutex_destroy(a)
-# if defined(__GLIBC__)
+# if defined(GIT_HAS_ASM_ATOMIC)
# include <asm/atomic.h>
typedef atomic_t git_refcnt;
# define gitrc_init(a) atomic_set(a, 0)