From f0f47213092f2502b4786998684830b4782cfed5 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Wed, 23 Feb 2005 23:49:30 +0000 Subject: [PATCH] * unixcompat.h: Only include if we're on AIX, as Solaris defines the macros twice---once in , and once in . --- src/ChangeLog | 3 +++ src/unixcompat.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ccf844164..5d09f14ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,9 @@ * tty.h: Moved the function printwstr to slint.c, because the SunPro compiler does not eliminate unused inline functions. * slint.c: printwstr has been moved to here. + * unixcompat.h: Only include if we're on AIX, + as Solaris defines the macros twice---once in , + and once in . 2005-02-23 Roland Illig diff --git a/src/unixcompat.h b/src/unixcompat.h index a21713bc5..b4d030569 100644 --- a/src/unixcompat.h +++ b/src/unixcompat.h @@ -14,7 +14,7 @@ #ifdef HAVE_SYS_MKDEV_H # include /* Solaris 9 */ #endif -#ifdef HAVE_SYS_SYSMACROS_H +#if defined(_AIX) && defined(HAVE_SYS_SYSMACROS_H) # include /* AIX */ #endif