diff options
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -22,6 +22,11 @@ /* Shadow password support for solaris - pdo@cs.umd.edu * Not just Solaris: at least HP-UX, IRIX, Linux. * the API is from SysV. --jhi */ +#ifdef __hpux__ +/* There is a MAXINT coming from <shadow.h> <- <hpsecurity.h> <- <values.h> + * and another MAXINT from "perl.h" <- <sys/param.h>. */ +#undef MAXINT +#endif #include <shadow.h> #endif @@ -1898,7 +1903,7 @@ PP(pp_ioctl) } else { retval = SvIV(argsv); - s = (char*)PTR_CAST retval; /* ouch */ + s = INT2PTR(char*,retval); /* ouch */ } TAINT_PROPER(optype == OP_IOCTL ? "ioctl" : "fcntl"); |