Commit e6e7efc9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Port to IRIX64, where "unsigned long" isn't large enough to avoid

alignment problems.
parent f5ce64ba
2003-01-07 Per Cederqvist <ceder@lysator.liu.se>
Port to IRIX64, where "unsigned long" isn't large enough to avoid
alignment problems.
* src/server/ram-smalloc.c: Include <inttypes.h> or <stdint.h>.
(union overhead): New union. Use two of these instead of two
unsigned ints as the overhead at the front of a malloced block.
This ensures we get the alignment that we need.
(smalloc): Updated to use union overhead. Some useless casts
removed.
(sfree): Ditto.
(srealloc): Ditto.
* configure.in: Check for <stdint.h>, intptr_t, intmax_t and
size_t.
2003-01-07 Per Cederqvist <ceder@ingate.com>
Xenofarm cleanup.
......
2003-01-07 Per Cederqvist <ceder@lysator.liu.se>
Port to IRIX64, where "unsigned long" isn't large enough to avoid
alignment problems.
* configure.in: Handle --disable-malloc-guards. Check for
intptr_t, intmax_t and size_t.
* src/isc_alloc.c: Include inttypes.h and stdint.h. Check
USE_MALLOC_GUARDS.
(union overhead): New union, to fix alignmentproblems.
(OVERHEAD): New macro.
(isc_malloc): Use union overhead instead of unsigned long.
Removed unneeded casts. Handle USE_MALLOC_GUARDS.
(isc_realloc): Ditto.
(isc_free): Ditto.
2003-01-06 Per Cederqvist <ceder@ceder.dyndns.org>
Fix IPv4 under Solaris 2.8.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment