public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Érico Nogueira" <ericonr@disroot.org>
To: elfutils-devel@sourceware.org
Cc: "Érico Rolim" <erico.erc@gmail.com>
Subject: [PATCH v2] backends/ppc_initreg.c: include <asm/ptrace.h>.
Date: Tue,  2 Feb 2021 00:04:03 -0300	[thread overview]
Message-ID: <20210202030403.27953-1-ericonr@disroot.org> (raw)

From: Érico Rolim <erico.erc@gmail.com>

Necessary on musl for struct pt_regs definition, doesn't affect the
build on glibc.

Signed-off-by: Érico Rolim <erico.erc@gmail.com>
---

Sending a v2 with the main difference being a slightly different commit
message and signed-off-by line.

I'm a bit hesitant on this being the correct patch, so I'd ask that you
only merge if you think it makes total sense, otherwise I'd like to sit
on it for a bit. For the record, it has been in use in Void Linux since
the end of 2019.

 backends/ChangeLog     | 4 ++++
 backends/ppc_initreg.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index f22cd57f..eb15c81d 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-01  Érico Nogueira  <ericonr@disroot.org>
+
+	* ppc_initreg.c: Also include <asm/ptrace.h>.
+
 2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* aarch64_retval.c (aarch64_return_value_location): Fix spelling typo
diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
index 0e0d3599..72cdb860 100644
--- a/backends/ppc_initreg.c
+++ b/backends/ppc_initreg.c
@@ -32,6 +32,7 @@
 
 #include <stdlib.h>
 #if defined(__powerpc__) && defined(__linux__)
+# include <asm/ptrace.h>
 # include <sys/ptrace.h>
 # include <sys/user.h>
 #endif
-- 
2.30.0


             reply	other threads:[~2021-02-02  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02  3:04 Érico Nogueira [this message]
2021-02-02  3:22 ` Dmitry V. Levin
2021-02-05 15:06   ` Mark Wielaard
2021-02-05 17:47     ` Érico Nogueira

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=20210202030403.27953-1-ericonr@disroot.org \
    --to=ericonr@disroot.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=erico.erc@gmail.com \
    /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).