From: Andy Dougherty Date: Mon, 23 May 2005 11:48:08 +0000 (-0400) Subject: Re: [perl #35938] [PATCH] SDBM_File fails to build on some platforms due to use of... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=81770b0cc0ed763d048a9cb4877bc8e70bb815fa;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #35938] [PATCH] SDBM_File fails to build on some platforms due to use of 'extern int errno' (was: Re: patches for lang/perl5.8 dfport override) Message-ID: p4raw-id: //depot/perl@24554 --- diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c index f705db5..cc6d0e9 100644 --- a/ext/SDBM_File/sdbm/sdbm.c +++ b/ext/SDBM_File/sdbm/sdbm.c @@ -34,11 +34,9 @@ /* * externals */ -#ifndef WIN32 -#ifndef sun -extern int errno; -#endif -#endif + +#include /* See notes in perl.h about avoiding + extern int errno; */ extern Malloc_t malloc proto((MEM_SIZE)); extern Free_t free proto((Malloc_t));