Skip to contentSkip to conversation

xenpm: build fix

PATCH New Christoph Egger 1 participant 1 message Jan 14, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenpm: build fix

Hi,

attached patch makes xenpm build again.

build error I get is this:
xenpm.c: In function 'signal_int_handler':
xenpm.c:272: error: storage size of 'tv' isn't known
cc1: warnings being treated as errors
xenpm.c:275: warning: implicit declaration of function 'gettimeofday' xenpm.c:272: warning: unused variable 'tv'
xenpm.c: In function 'start_gather_func':
xenpm.c:354: error: storage size of 'tv' isn't known xenpm.c:354: warning: unused variable 'tv'

---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632

tools/misc/xenpm.c +1 -0
diff -r 77476eeb8c42 tools/misc/xenpm.c
@@ -29,6 +29,7 @@
 
 #include <xenctrl.h>
 #include <inttypes.h>
+#include <sys/time.h>
 
 #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel