From dc8d38204b1b2d3de1932c05f0259892d2a4ad9c Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 27 Nov 2006 22:36:37 +0000 Subject: [PATCH] Undefine _NO_PROTO. --- src/s/aix4-2.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 02225a9226f..c23987d2d9b 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h @@ -20,5 +20,19 @@ */ #define BROKEN_GET_CURRENT_DIR_NAME 1 +/* aix3-1.h defined _NO_PROTO, probably to work around an AIX compiler + that did not handle prototypes. On (at least) AIX 5.2, this causes + the proper prototype to be thrown away for lseek64, so compiled + Lisp files do not load correctly and compilation fails. + + The AIX compiler should have learned about function prototypes long + ago, so we can probably go ahead and undefine _NO_PROTO. However, + if someone can demonstrate that this problem still exists for AIX + 4, this should be moved into a new file (aix5.h). +*/ + +#undef _NO_PROTO + + /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 (do not change this comment) */ -- 2.39.2