From: Adrien Schildknecht <adrien+dev@schischi.me>
To: trinity@vger.kernel.org
Cc: Adrien Schildknecht <adrien+dev@schischi.me>
Subject: [PATCH] compat.h: add SHM_NORESERVE flag
Date: Thu, 10 Mar 2016 14:56:55 -0800 [thread overview]
Message-ID: <1457650615-5679-1-git-send-email-adrien+dev@schischi.me> (raw)
Debian jessie MIPS build fix.
sysv-shm.c:22:3: error: 'SHM_NORESERVE' undeclared (first use in this function)
SHM_NORESERVE,
https://sourceware.org/bugzilla/show_bug.cgi?id=17930
Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
---
include/compat.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/compat.h b/include/compat.h
index 2a89744..367fed6 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -1097,3 +1097,8 @@ struct kvm_get_htab_fd {
#define SHM_HUGE_2MB (21 << SHM_HUGE_SHIFT)
#define SHM_HUGE_1GB (30 << SHM_HUGE_SHIFT)
#endif
+
+/* bits/shm.h */
+#ifndef SHM_NORESERVE
+# define SHM_NORESERVE 010000
+#endif
--
2.7.2
next reply other threads:[~2016-03-10 22:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 22:56 Adrien Schildknecht [this message]
2016-03-10 23:21 ` [PATCH] compat.h: add SHM_NORESERVE flag Dave Jones
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=1457650615-5679-1-git-send-email-adrien+dev@schischi.me \
--to=adrien+dev@schischi.me \
--cc=trinity@vger.kernel.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).