Re: [perl #35938] [PATCH] SDBM_File fails to build on some platforms due to use of...
Andy Dougherty [Mon, 23 May 2005 11:48:08 +0000 (07:48 -0400)]
Message-ID: <Pine.SOC.4.62.0505231143480.4714@maxwell.phys.lafayette.edu>

p4raw-id: //depot/perl@24554

ext/SDBM_File/sdbm/sdbm.c

index f705db5..cc6d0e9 100644 (file)
 /*
  * externals
  */
-#ifndef WIN32
-#ifndef sun
-extern int errno;
-#endif
-#endif
+
+#include <errno.h> /* See notes in perl.h about avoiding
+                       extern int errno; */
 
 extern Malloc_t malloc proto((MEM_SIZE));
 extern Free_t free proto((Malloc_t));