This commit is contained in:
kelson42 2009-10-30 07:43:23 +00:00
parent eb2be48351
commit 5b9bb8c366
3 changed files with 13 additions and 1 deletions

View File

@ -62,6 +62,9 @@
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "kiwix" #define PACKAGE_TARNAME "kiwix"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "0.9" #define PACKAGE_VERSION "0.9"

View File

@ -61,6 +61,9 @@
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME #undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */ /* Define to the version of this package. */
#undef PACKAGE_VERSION #undef PACKAGE_VERSION

View File

@ -77,7 +77,13 @@ namespace zim
#else #else
*reinterpret_cast<int32_t*>(ret.data) = reinterpret_cast<int32_t>(&ret); union {
void* p;
int32_t n;
} u;
u.p = &ret;
*reinterpret_cast<int32_t*>(ret.data) = u.n;
*reinterpret_cast<int32_t*>(ret.data + 4) = static_cast<int32_t>(tv.tv_sec); *reinterpret_cast<int32_t*>(ret.data + 4) = static_cast<int32_t>(tv.tv_sec);
*reinterpret_cast<int32_t*>(ret.data + 8) = static_cast<int32_t>(tv.tv_usec); *reinterpret_cast<int32_t*>(ret.data + 8) = static_cast<int32_t>(tv.tv_usec);
*reinterpret_cast<int32_t*>(ret.data + 12) = static_cast<int32_t>(getpid()); *reinterpret_cast<int32_t*>(ret.data + 12) = static_cast<int32_t>(getpid());