summaryrefslogtreecommitdiff
path: root/djgpp
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-27 17:12:41 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-27 17:12:41 +0000
commit706de38c2aa2b981f7071fda099501bf2cc8caeb (patch)
tree32aa0ced28b042dc1e42b9102ceac21cd1dbab96 /djgpp
parent11fe14b1c777b120f18b8463917f305b1af20e90 (diff)
downloadperl-706de38c2aa2b981f7071fda099501bf2cc8caeb.tar.gz
djgpp update (from Laszlo Molnar)
p4raw-id: //depot/perl@5288
Diffstat (limited to 'djgpp')
-rw-r--r--djgpp/config.over1
-rw-r--r--djgpp/configure.bat2
-rw-r--r--djgpp/djgpp.c6
3 files changed, 4 insertions, 5 deletions
diff --git a/djgpp/config.over b/djgpp/config.over
index 1f567b4174..5c252362c7 100644
--- a/djgpp/config.over
+++ b/djgpp/config.over
@@ -30,6 +30,7 @@ repair()
-e 's=devel/peek=Devel/Peek='\
-e 's=devel/dprof=Devel/DProf='\
-e 's=sys/sys=Sys/Sys='\
+ -e 's=sys/hos=Sys/Hos='\
-e 's=file/=='\
-e 's=File/=='\
-e 's=glob=='\
diff --git a/djgpp/configure.bat b/djgpp/configure.bat
index 370f5ed048..e7d41d7130 100644
--- a/djgpp/configure.bat
+++ b/djgpp/configure.bat
@@ -33,5 +33,5 @@ echo Running sed...
sh djgpp/djgppsed.sh
echo Running Configure...
-sh Configure -DPERL_EXTERNAL_GLOB %1 %2 %3 %4 %5 %6 %7 %8 %9
+sh Configure %1 %2 %3 %4 %5 %6 %7 %8 %9
:end
diff --git a/djgpp/djgpp.c b/djgpp/djgpp.c
index 5a8fc5fa5c..c928851b76 100644
--- a/djgpp/djgpp.c
+++ b/djgpp/djgpp.c
@@ -122,11 +122,9 @@ convretcode (pTHX_ int rc,char *prog,int fl)
if (rc < 0 && ckWARN(WARN_EXEC))
Perl_warner(aTHX_ WARN_EXEC,"Can't %s \"%s\": %s",
fl ? "exec" : "spawn",prog,Strerror (errno));
- if (rc > 0)
+ if (rc >= 0)
return rc << 8;
- if (rc < 0)
- return 255 << 8;
- return 0;
+ return -1;
}
int