aboutsummaryrefslogtreecommitdiff
path: root/libctf/swap.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-03-05 14:27:08 -0800
committerAlan Modra <amodra@gmail.com>2020-03-11 17:48:49 +1030
commit119789424b62321e74a18fc1c088ebf479d999c4 (patch)
tree53d3767bbe3ef6d3a9dc677e9956315c2cc241ed /libctf/swap.h
parent435edf0bf231240ccecb474b74ebb49dc8db2633 (diff)
downloadgdb-119789424b62321e74a18fc1c088ebf479d999c4.zip
gdb-119789424b62321e74a18fc1c088ebf479d999c4.tar.gz
gdb-119789424b62321e74a18fc1c088ebf479d999c4.tar.bz2
libctf: Mark bswap_identity_64 inline function as static.
This is similar to cbbbc402e059ee345cb781d3ceb757ae1cc679ee and fixes a link error with duplicately defined symbols on FreeBSD. libctf/ChangeLog: * swap.h (bswap_identity_64): Make static.
Diffstat (limited to 'libctf/swap.h')
-rw-r--r--libctf/swap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libctf/swap.h b/libctf/swap.h
index f8cc822..d526f7e 100644
--- a/libctf/swap.h
+++ b/libctf/swap.h
@@ -43,7 +43,7 @@ bswap_32 (uint32_t v)
| ((v & 0x000000ff) << 24));
}
-inline uint64_t
+static inline uint64_t
bswap_identity_64 (uint64_t v)
{
return v;