* unixcompat.h: Only include <sys/sysmacros.h> if we're on AIX,

as Solaris defines the macros twice---once in <sys/mkdev.h>,
	and once in <sys/sysmacros.h>.
This commit is contained in:
Roland Illig 2005-02-23 23:49:30 +00:00
parent 303cf1ff16
commit f0f4721309
2 changed files with 4 additions and 1 deletions

View File

@ -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 <sys/sysmacros.h> if we're on AIX,
as Solaris defines the macros twice---once in <sys/mkdev.h>,
and once in <sys/sysmacros.h>.
2005-02-23 Roland Illig <roland.illig@gmx.de>

View File

@ -14,7 +14,7 @@
#ifdef HAVE_SYS_MKDEV_H
# include <sys/mkdev.h> /* Solaris 9 */
#endif
#ifdef HAVE_SYS_SYSMACROS_H
#if defined(_AIX) && defined(HAVE_SYS_SYSMACROS_H)
# include <sys/sysmacros.h> /* AIX */
#endif