diff --git a/src/zimlib/src/config.h b/src/zimlib/src/config.h index dd3f879..bd9132f 100644 --- a/src/zimlib/src/config.h +++ b/src/zimlib/src/config.h @@ -62,6 +62,9 @@ /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "kiwix" +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + /* Define to the version of this package. */ #define PACKAGE_VERSION "0.9" diff --git a/src/zimlib/src/config.h.in b/src/zimlib/src/config.h.in index 5f3707d..29c5503 100644 --- a/src/zimlib/src/config.h.in +++ b/src/zimlib/src/config.h.in @@ -61,6 +61,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION diff --git a/src/zimlib/src/uuid.cpp b/src/zimlib/src/uuid.cpp index 9ff9159..8ecd0a1 100644 --- a/src/zimlib/src/uuid.cpp +++ b/src/zimlib/src/uuid.cpp @@ -77,7 +77,13 @@ namespace zim #else - *reinterpret_cast(ret.data) = reinterpret_cast(&ret); + union { + void* p; + int32_t n; + } u; + u.p = &ret; + + *reinterpret_cast(ret.data) = u.n; *reinterpret_cast(ret.data + 4) = static_cast(tv.tv_sec); *reinterpret_cast(ret.data + 8) = static_cast(tv.tv_usec); *reinterpret_cast(ret.data + 12) = static_cast(getpid());