Correct hpux ifdefs. hpux 11 and up doesn't define __HPUX_VERSION.

Changes have no effect on other platforms. Patch sent to sjg@
This commit is contained in:
tnn 2007-04-15 11:23:07 +00:00
parent b00429f229
commit b644e5d0aa

View file

@ -98,7 +98,7 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)sigcompat.c 5.3 (Berkeley) 2/24/91";*/ /*static char *sccsid = "from: @(#)sigcompat.c 5.3 (Berkeley) 2/24/91";*/
static char *rcsid = "$Id: sigcompat.c,v 1.1.1.1 2005/12/02 00:03:00 sjg Exp $"; static char *rcsid = "$Id: sigcompat.c,v 1.2 2007/04/15 11:23:07 tnn Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#undef signal #undef signal
@ -126,14 +126,14 @@ static char *rcsid = "$Id: sigcompat.c,v 1.1.1.1 2005/12/02 00:03:00 sjg Exp $";
#endif #endif
#ifndef MASK_T #ifndef MASK_T
# ifdef __hpux__ # ifdef __hpux
# define MASK_T long # define MASK_T long
# else # else
# define MASK_T int # define MASK_T int
# endif # endif
#endif #endif
/* I just hate HPsUX */ /* I just hate HPsUX */
#if defined(__HPUX_VERSION) && __HPUX_VERSION > 9 #if defined(__hpux) && !defined(__HPUX_VERSION)
# define PAUSE_MASK_T int # define PAUSE_MASK_T int
#else #else
# define PAUSE_MASK_T MASK_T # define PAUSE_MASK_T MASK_T