fix OS/2 coredump with POSIX::tmpnam() (from Ilya Zakharevich)
[p5sagit/p5-mst-13.2.git] / os2 / os2ish.h
index 3d7a6fd..8b7613e 100644 (file)
@@ -64,7 +64,7 @@
 #ifndef SIGILL
 #    define SIGILL 6         /* blech */
 #endif
-#define ABORT() kill(getpid(),SIGABRT);
+#define ABORT() kill(PerlProc_getpid(),SIGABRT);
 
 #define BIT_BUCKET "/dev/nul"  /* Will this work? */
 
@@ -239,6 +239,9 @@ int my_syspclose(PerlIO *f);
 FILE *my_tmpfile (void);
 char *my_tmpnam (char *);
 
+#undef L_tmpnam
+#define L_tmpnam MAXPATHLEN
+
 #define tmpfile        my_tmpfile
 #define tmpnam my_tmpnam
 #define isatty _isterm