From: vladimir.mezentsev@oracle.com
To: binutils@sourceware.org
Cc: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Subject: [PATCH] gprofng: 30889 can't compile without large file support
Date: Wed, 10 Jan 2024 20:02:36 -0800 [thread overview]
Message-ID: <20240111040236.1482061-1-vladimir.mezentsev@oracle.com> (raw)
From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
gprofng/ChangeLog
2024-01-10 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR 30889
* src/DbeJarFile.cc (O_LARGEFILE): Define to 0, if not defined.
* src/Module.cc (O_LARGEFILE): Likewise.
* src/gp-display-src.cc (O_LARGEFILE): Likewise.
---
gprofng/src/DbeJarFile.cc | 4 ++++
gprofng/src/Module.cc | 4 ++++
gprofng/src/gp-display-src.cc | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/gprofng/src/DbeJarFile.cc b/gprofng/src/DbeJarFile.cc
index fe3427f0b54..d14fd3bb0a6 100644
--- a/gprofng/src/DbeJarFile.cc
+++ b/gprofng/src/DbeJarFile.cc
@@ -30,6 +30,10 @@
#include "Data_window.h"
#include "vec.h"
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
static uint32_t
get_u1 (unsigned char *b)
{
diff --git a/gprofng/src/Module.cc b/gprofng/src/Module.cc
index d5255dcd05f..f59dea1b595 100644
--- a/gprofng/src/Module.cc
+++ b/gprofng/src/Module.cc
@@ -41,6 +41,10 @@
#include "PathTree.h"
#include "Elf.h"
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
Module::Module ()
{
lang_code = Sp_lang_unknown;
diff --git a/gprofng/src/gp-display-src.cc b/gprofng/src/gp-display-src.cc
index 200e6080d2e..78560d49e52 100644
--- a/gprofng/src/gp-display-src.cc
+++ b/gprofng/src/gp-display-src.cc
@@ -33,6 +33,10 @@
#include "DbeFile.h"
#include "Command.h"
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
class er_src : public DbeApplication
{
public:
--
2.31.1
next reply other threads:[~2024-01-11 4:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 4:02 vladimir.mezentsev [this message]
2024-01-11 5:53 ` Mike Frysinger
2024-01-11 8:09 ` Vladimir Mezentsev
2024-01-12 4:10 vladimir.mezentsev
2024-01-12 9:20 ` Andreas Schwab
2024-01-12 19:49 ` Vladimir Mezentsev
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=20240111040236.1482061-1-vladimir.mezentsev@oracle.com \
--to=vladimir.mezentsev@oracle.com \
--cc=binutils@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).