Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
#include <xen/io/fsif.h>
#include <semaphore.h>
+#include <types.h>
struct fs_import
{
#ifndef _TYPES_H_
#define _TYPES_H_
+#include <stddef.h>
typedef signed char s8;
typedef unsigned char u8;
#define UINT_MAX (~0U)
typedef long ssize_t;
-typedef unsigned long size_t;
#endif /* _TYPES_H_ */
#else
register unsigned long sp asm("rsp");
#endif
- current = (void *)(sp & ~(STACK_SIZE-1));
+ current = (void *)(unsigned long)(sp & ~(STACK_SIZE-1));
return *current;
}
init_netfront(NULL, NULL, NULL);
}
-#define RAND_MIX 2654435769
+#define RAND_MIX 2654435769U
/* Should be random enough for this use */
static int rand(void)