From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] libxc: lzma build fix
Date: Wed, 26 Jan 2011 16:22:14 +0100 [thread overview]
Message-ID: <201101261622.14583.Christoph.Egger@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
Hi!
Attached patch lets libxc build with lzma support on NetBSD.
NetBSD doesn't have sysconf(_SC_PHYS_PAGES).
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_libxc_lzma.diff --]
[-- Type: text/x-diff, Size: 451 bytes --]
diff -r fb8a14647f4d -r 48852e88d506 tools/libxc/xc_dom_bzimageloader.c
--- a/tools/libxc/xc_dom_bzimageloader.c
+++ b/tools/libxc/xc_dom_bzimageloader.c
@@ -144,7 +144,11 @@ static uint64_t physmem(void)
{
uint64_t ret = 0;
const long pagesize = sysconf(_SC_PAGESIZE);
+#ifdef _SC_PHYS_PAGES
const long pages = sysconf(_SC_PHYS_PAGES);
+#else
+ const long pages = -1;
+#endif
if ( (pagesize != -1) || (pages != -1) )
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2011-01-26 15:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 15:22 Christoph Egger [this message]
2011-01-26 16:16 ` [PATCH] libxc: lzma build fix Ian Jackson
2011-01-26 17:27 ` Christoph Egger
2011-01-27 19:04 ` Ian Jackson
2011-01-27 19:54 ` Ian Campbell
2011-01-28 11:45 ` Ian Jackson
2011-01-28 18:51 ` Ian Jackson
2011-01-28 19:14 ` Ian Campbell
2011-01-28 19:38 ` Ian Jackson
2011-02-11 13:41 ` Jan Beulich
2011-02-11 13:53 ` Ian Campbell
2011-02-11 17:49 ` Ian Jackson
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=201101261622.14583.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.