# HG changeset patch # User Anthony Liguori # Node ID 18897c2522a91e0c8c2486f0bb6fc70670d81a86 # Parent 4e335372ace84b605cebc36a42610caadb09a4d8 Having xs.h include xs_lib.h and then include xenctrl.h implicitly makes xs.h GPL (instead of the intended LGPL) b/c of the nature of the GPL. xs_lib.h only needs xenctrl.h for the xen type declarations. Change the xen types to be declared under a guard to avoid redefining in multiple places. Signed-off-by: Anthony Liguori diff -r 4e335372ace8 -r 18897c2522a9 tools/libxc/xenctrl.h --- a/tools/libxc/xenctrl.h Tue Oct 11 15:23:19 2005 +0100 +++ b/tools/libxc/xenctrl.h Tue Oct 11 10:44:33 2005 -0500 @@ -9,16 +9,22 @@ #ifndef XENCTRL_H #define XENCTRL_H +#ifndef _XEN_TYPES_ +#define _XEN_TYPES_ + #include -typedef uint8_t u8; -typedef uint16_t u16; -typedef uint32_t u32; -typedef uint64_t u64; -typedef int8_t s8; -typedef int16_t s16; -typedef int32_t s32; -typedef int64_t s64; +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +typedef int8_t s8; +typedef int16_t s16; +typedef int32_t s32; +typedef int64_t s64; + +#endif #include #include diff -r 4e335372ace8 -r 18897c2522a9 tools/xenstore/xs_lib.h --- a/tools/xenstore/xs_lib.h Tue Oct 11 15:23:19 2005 +0100 +++ b/tools/xenstore/xs_lib.h Tue Oct 11 10:44:33 2005 -0500 @@ -22,8 +22,25 @@ #include #include -#include #include + +#ifndef _XEN_TYPES_ +#define _XEN_TYPES_ + +#include + +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +typedef int8_t s8; +typedef int16_t s16; +typedef int32_t s32; +typedef int64_t s64; + +#endif + #include /* Bitmask of permissions. */