This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[ID 19990909.003] MAXINT redefined warning on HP-UX 10.20
authorDaniel S. Lewart <lewart@uiuc.edu>
Thu, 9 Sep 1999 10:33:37 +0000 (05:33 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 9 Sep 1999 15:42:30 +0000 (15:42 +0000)
To: perl5-porters@perl.org
Message-Id: <199909091533.KAA01242@www.cvm.uiuc.edu>

p4raw-id: //depot/cfgperl@4114

pp_sys.c

index 5271a86..e0beb4e 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
 /* 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