diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-12-16 11:38:57 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-06-26 15:56:39 +0100 |
commit | c1401ecc29a92428a5d52a23802e20e8c2829b03 (patch) | |
tree | 562d33185b3c08077dac58f45c4b87eca599d480 | |
parent | e755667f94f2579056fb5210eed525dafebb96f3 (diff) | |
download | gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.zip gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.tar.gz gdb-c1401ecc29a92428a5d52a23802e20e8c2829b03.tar.bz2 |
libctf: add some missing #includes.
Causes warnings on (at least) recent FreeBSD.
libctf/
* ctf-create.c: Include <unistd.h>.
* ctf-open-bfd.c: Likewise.
-rw-r--r-- | libctf/ChangeLog | 5 | ||||
-rw-r--r-- | libctf/ctf-create.c | 1 | ||||
-rw-r--r-- | libctf/ctf-open-bfd.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 743237e..a631d55 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,10 @@ 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 * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls. * swap.h (bswap_16): Do not assume that presence of <byteswap.h> diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index a01250b..808da37 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 diff --git a/libctf/ctf-open-bfd.c b/libctf/ctf-open-bfd.c index 630a158..dafa265 100644 --- a/libctf/ctf-open-bfd.c +++ b/libctf/ctf-open-bfd.c @@ -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" |