Improve AIX port.
commit227be86d105d077b281e6a123ba2cc166635a429
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Feb 2013 20:32:54 +0000 (11 12:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Feb 2013 20:32:54 +0000 (11 12:32 -0800)
treeab0c085c69dcbe041b376b3b28bcbea1dcd24dea
parent713bfeaab314f4ae943a19205d7db71cb3e70745
Improve AIX port.

This doesn't fix the bug, but it makes progress: Emacs builds now.
* unexaix.c: Include inttypes.h, stdarg.h.
(report_error, report_error_1): Mark as _Noreturn.
(report_error): Don't report the wrong errno.
(report_error_1): Now varargs.  All callers changed.
(make_hdr): Use uintptr_t, not unsigned, when converting pointers
to unsigned.  Don't use ADDR_CORRECT, as it no longer exists.
(write_ptr): Use %p to print address rather than %lx and a cast
to unsigned long.  Grow buffer a bit, to be safer.

Fixes: debbugs:13650
src/ChangeLog
src/unexaix.c