diff options
author | Andy Dougherty <doughera@lafayette.edu> | 2005-05-23 07:48:08 -0400 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-05-23 15:29:01 +0000 |
commit | cf24697c51f40460f878a0afd066245b82c59eda (patch) | |
tree | ee4818118fdf8a97d9a58f140eaecbbfe5a66a47 | |
parent | 29b50f99d4b03ecba20f39758ff78b30f2fa253d (diff) | |
download | perl-cf24697c51f40460f878a0afd066245b82c59eda.tar.gz |
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: <Pine.SOC.4.62.0505231143480.4714@maxwell.phys.lafayette.edu>
p4raw-id: //depot/perl@24554
-rw-r--r-- | ext/SDBM_File/sdbm/sdbm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/SDBM_File/sdbm/sdbm.c b/ext/SDBM_File/sdbm/sdbm.c index f705db58af..cc6d0e9b39 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 <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)); |