X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/1f5d53eb532df40b6c41d25a8b1eaf4ccf69d518..45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193:/src/s/aix4-2.h diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 443fc03457..37b041396f 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h @@ -1,5 +1,5 @@ /* -Copyright (C) 1999, 2001-2011 Free Software Foundation, Inc. +Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -32,7 +32,7 @@ along with GNU Emacs. If not, see . */ /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. To get the name of the slave side, you just ttyname() the master side. */ -#define PTY_ITERATION for (c = 0; !c ; c++) +#define PTY_ITERATION int c; for (c = 0; !c ; c++) #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); @@ -47,11 +47,6 @@ along with GNU Emacs. If not, see . */ /* AIX doesn't define this. */ #define unix 1 -/* string.h defines rindex as a macro, at least with native cc, so we - lose declaring char * rindex without this. - It is just a guess which versions of AIX need this definition. */ -#undef HAVE_STRING_H - /* Perry Smith says these are correct. */ #define SIGNALS_VIA_CHARACTERS #define CLASH_DETECTION