diff options
author | Lukas Durfina <ldurfina@tachyum.com> | 2020-02-03 14:36:17 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-02-03 14:36:17 +0400 |
commit | b0029748ca991c64cf9f0851217b7762e4877854 (patch) | |
tree | 84cd099b71042853f7a156e265ab9a5676c336b8 | |
parent | 0b398d69acde3377dfbbeb8a4cfe87ae8c8562fa (diff) | |
download | binutils-b0029748ca991c64cf9f0851217b7762e4877854.zip binutils-b0029748ca991c64cf9f0851217b7762e4877854.tar.gz binutils-b0029748ca991c64cf9f0851217b7762e4877854.tar.bz2 |
Fix compilation error with musl in gdb/testsuite/gdb.base/fileio.c
Musl is giving warnings about these includes in this way:
warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
gdb/testsuite/Changelog:
* gdb.base/fileio.c: Remove #include of <sys/errno.h>.
Replace #include of <sys/fcntl.h> by <fcntl.h>.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b5ba5ba..4999756 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-03 Lukas Durfina <ldurfina@tachyum.com> (tiny change) + + * gdb.base/fileio.c: Remove #include of <sys/errno.h>. + Replace #include of <sys/fcntl.h> by <fcntl.h>. + 2020-02-01 Tom de Vries <tdevries@suse.de> * gdb.server/server-kill-python.exp: Fix $gdb_tst_name typo. diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 7f482a3..0f20151 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -1,13 +1,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/errno.h> #include <sys/types.h> -#include <sys/fcntl.h> #include <sys/stat.h> #include <sys/time.h> #include <errno.h> #include <sys/wait.h> +#include <fcntl.h> #include <unistd.h> #include <time.h> /* TESTS : |