public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net
To: gdb-testers@sourceware.org
Subject: [binutils-gdb] Fix compilation error with musl in gdb/testsuite/gdb.base/fileio.c
Date: Mon, 03 Feb 2020 11:10:00 -0000	[thread overview]
Message-ID: <b0029748ca991c64cf9f0851217b7762e4877854@gdb-build> (raw)

*** TEST RESULTS FOR COMMIT b0029748ca991c64cf9f0851217b7762e4877854 ***

commit b0029748ca991c64cf9f0851217b7762e4877854
Author:     Lukas Durfina <ldurfina@tachyum.com>
AuthorDate: Mon Feb 3 14:36:17 2020 +0400
Commit:     Joel Brobecker <brobecker@adacore.com>
CommitDate: Mon Feb 3 14:36:17 2020 +0400

    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>.

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b5ba5ba59d..49997564e1 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 7f482a34d3..0f201518b7 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 :


             reply	other threads:[~2020-02-03 11:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-03 11:10 gdb-buildbot [this message]
2020-02-03 11:12 ` Failures on Fedora-i686, branch master gdb-buildbot
2020-02-03 11:36 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot
2020-02-03 11:37 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-02-03 11:40 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2020-02-03 12:48 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2020-02-03 12:48 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2020-02-03 13:15 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
2020-02-03 13:38 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot
2020-02-03 15:21 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0029748ca991c64cf9f0851217b7762e4877854@gdb-build \
    --to=gdb-buildbot@sergiodj.net \
    --cc=gdb-testers@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).