This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
"Constant subroutine redefined" mandatory warning
[perl5.git] / unixish.h
index 492b24a..7b8ef16 100644 (file)
--- a/unixish.h
+++ b/unixish.h
@@ -5,6 +5,8 @@
  * here.
  */
 
+#ifndef PERL_MICRO
+
 /* HAS_IOCTL:
  *     This symbol, if defined, indicates that the ioctl() routine is
  *     available to set I/O characteristics
@@ -33,6 +35,8 @@
 
 #define HAS_KILL
 #define HAS_WAIT
+
+#endif /* !PERL_MICRO */
   
 /* USEMYBINMODE
  *     This symbol, if defined, indicates that the program should
 
 /* these should be set in a hint file, not here */
 #ifndef PERL_SYS_INIT
-#ifdef PERL_SCO5
+#if defined(PERL_SCO5) || defined(__FreeBSD__)
+#  ifdef __FreeBSD__
+#    include <floatingpoint.h>
+#  endif
 #  define PERL_SYS_INIT(c,v)   fpsetmask(0); MALLOC_INIT
 #else
 #  ifdef POSIX_BC
 #endif
 
 #ifndef PERL_SYS_TERM
-#define PERL_SYS_TERM()                MALLOC_TERM
+#define PERL_SYS_TERM()                OP_REFCNT_TERM; MALLOC_TERM
 #endif
 
 #define BIT_BUCKET "/dev/null"