summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-12-16 11:38:57 +0000
committerNick Alcock <nick.alcock@oracle.com>2020-06-26 15:56:39 +0100
commitc1401ecc29a92428a5d52a23802e20e8c2829b03 (patch)
tree562d33185b3c08077dac58f45c4b87eca599d480 /libctf/ctf-create.c
parentlibctf, elfcpp, gold: do not assume that <byteswap.h> contains bswap_* (diff)
downloadbinutils-gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.tar.gz
binutils-gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.tar.bz2
binutils-gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.zip
libctf: add some missing #includes.
Causes warnings on (at least) recent FreeBSD. libctf/ * ctf-create.c: Include <unistd.h>. * ctf-open-bfd.c: Likewise.
Diffstat (limited to 'libctf/ctf-create.c')
-rw-r--r--libctf/ctf-create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c
index a01250bc4d4..808da372de8 100644
--- a/libctf/ctf-create.c
+++ b/libctf/ctf-create.c
@@ -21,6 +21,7 @@
#include <sys/param.h>
#include <assert.h>
#include <string.h>
+#include <unistd.h>
#include <zlib.h>
#ifndef roundup