]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
hvmloader: remove size_t typedef and include stddef.h
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 9 Apr 2014 15:47:08 +0000 (17:47 +0200)
committerRoger Pau Monne <roger.pau@citrix.com>
Wed, 16 Apr 2014 07:55:24 +0000 (09:55 +0200)
The open coded typedef of size_t was clashing with the typedef in
FreeBSD headers. Remove the typedef and include the proper header
where size_t is defined (stddef.h).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
tools/firmware/hvmloader/util.h

index 9ccb905dcbe6cf41828b3b977bf53f70ba041621..46d32b99a4548477fa5dc4a1158d3763b9d26774 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <stdarg.h>
 #include <stdint.h>
+#include <stddef.h>
 #include <xen/xen.h>
 #include <xen/hvm/hvm_info_table.h>
 
@@ -174,7 +175,6 @@ int printf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 int vprintf(const char *fmt, va_list ap);
 
 /* Buffer output */
-typedef unsigned long size_t;
 int snprintf(char *buf, size_t size, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
 
 /* Populate specified memory hole with RAM. */