All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxc: lzma build fix
@ 2011-01-26 15:22 Christoph Egger
  2011-01-26 16:16 ` Ian Jackson
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Egger @ 2011-01-26 15:22 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-02-11 17:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 15:22 [PATCH] libxc: lzma build fix Christoph Egger
2011-01-26 16:16 ` 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

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.