libctf: add some missing #includes.
authorNick Alcock <nick.alcock@oracle.com>
Mon, 16 Dec 2019 11:38:57 +0000 (11:38 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 26 Jun 2020 14:56:39 +0000 (15:56 +0100)
Causes warnings on (at least) recent FreeBSD.

libctf/
* ctf-create.c: Include <unistd.h>.
* ctf-open-bfd.c: Likewise.

libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-open-bfd.c

index 743237e3d34dc8e19cdf1fabbaed1d392e19eff0..a631d55464bc46daf21bd5e74b30ee228dffaeb9 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-create.c: Include <unistd.h>.
+       * ctf-open-bfd.c: Likewise.
+
 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
 
        PR libctf/25120
index a01250bc4d4198d666a25b495ad4498e10254c5a..808da372de811c5e0f3cfe0e3ca491988ff77b59 100644 (file)
@@ -21,6 +21,7 @@
 #include <sys/param.h>
 #include <assert.h>
 #include <string.h>
+#include <unistd.h>
 #include <zlib.h>
 
 #ifndef roundup
index 630a158af864eb8a1f209e2ed05da3572a414546..dafa265f9d821510fc7375fb746c532f49de8448 100644 (file)
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <string.h>
 #include <fcntl.h>
+#include <unistd.h>
 #include <elf.h>
 #include <bfd.h>
 #include "swap.h"