summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_getrel.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/gelf_getrel.c')
-rw-r--r--libelf/gelf_getrel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/gelf_getrel.c b/libelf/gelf_getrel.c
index f3775bd9..74a5595a 100644
--- a/libelf/gelf_getrel.c
+++ b/libelf/gelf_getrel.c
@@ -88,7 +88,7 @@ gelf_getrel (data, ndx, dst)
The interface is broken so that it requires this hack. */
scn = data_scn->s;
- rwlock_rdlock (scn->elf->lock);
+ RWLOCK_RDLOCK (scn->elf->lock);
if (scn->elf->class == ELFCLASS32)
{
@@ -123,7 +123,7 @@ gelf_getrel (data, ndx, dst)
sizeof (Elf64_Rel));
}
- rwlock_unlock (scn->elf->lock);
+ RWLOCK_UNLOCK (scn->elf->lock);
return result;
}