]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix compilation error with musl in gdb/testsuite/gdb.base/fileio.c
authorLukas Durfina <ldurfina@tachyum.com>
Mon, 3 Feb 2020 10:36:17 +0000 (14:36 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 3 Feb 2020 10:36:17 +0000 (14:36 +0400)
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>.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fileio.c

index b5ba5ba59da09f1a565358c78b54508fc88d1cbd..49997564e1170308a873d8ee63036ddcb6ee05aa 100644 (file)
@@ -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.
index 7f482a34d39af89d559ed74008d381d691d46c2c..0f201518b714128c2685592772cd664154576450 100644 (file)
@@ -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 :