Fix breakages that prevended -DPERL_POISON from compiling.
[p5sagit/p5-mst-13.2.git] / mpeix / mpeixish.h
index dc8cb19..49ef435 100644 (file)
@@ -9,25 +9,25 @@
  *     This symbol, if defined, indicates that the ioctl() routine is
  *     available to set I/O characteristics
  */
-#define        HAS_IOCTL               / **/
+#define        HAS_IOCTL               /**/
  
 /* HAS_UTIME:
  *     This symbol, if defined, indicates that the routine utime() is
  *     available to update the access and modification times of files.
  */
-#define HAS_UTIME              / **/
+#define HAS_UTIME              /**/
 
 /* HAS_GROUP
  *     This symbol, if defined, indicates that the getgrnam() and
  *     getgrgid() routines are available to get group entries.
  */
-#define HAS_GROUP              / **/
+#define HAS_GROUP              /**/
 
 /* HAS_PASSWD
  *     This symbol, if defined, indicates that the getpwnam() and
  *     getpwuid() routines are available to get password entries.
  */
-#define HAS_PASSWD             / **/
+#define HAS_PASSWD             /**/
 
 #define HAS_KILL
 #define HAS_WAIT
@@ -52,7 +52,7 @@
  *     This symbol is defined if this system has a stat structure declaring
  *     st_rdev
  */
-#define USE_STAT_RDEV  / **/
+#define USE_STAT_RDEV  /**/
 
 /* ACME_MESS:
  *     This symbol, if defined, indicates that error messages should be 
@@ -87,9 +87,7 @@
  */
 /* #define ALTERNATE_SHEBANG "#!" / **/
 
-#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
-# include <signal.h>
-#endif
+#include <signal.h>
 
 #ifndef SIGABRT
 #    define SIGABRT SIGILL
 #define Mkdir(path,mode)   mkdir((path),(mode))
 
 #ifndef PERL_SYS_INIT
-#  define PERL_SYS_INIT(c,v) PERL_FPU_INIT MALLOC_INIT
+#  define PERL_SYS_INIT(c,v)   PERL_FPU_INIT MALLOC_INIT
 #endif
 
 #ifndef PERL_SYS_TERM
@@ -140,3 +138,18 @@ extern key_t ftok (char *pathname, char id);
 extern char *gcvt (double value, int ndigit, char *buf);
 extern int isnan (double value);
 extern void srand48(long int seedval);
+
+/* various missing constants -- define 'em */
+
+#define PF_UNSPEC 0
+
+/* declarations for wrappers in mpeix.c */
+
+#include <time.h>
+#include <sys/time.h>
+
+extern int ftruncate(int fd, long wantsize);
+extern int gettimeofday( struct timeval *tp, struct timezone *tpz );
+extern int truncate(const char *pathname, off_t length);
+
+#define fcntl mpe_fcntl