summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
Diffstat (limited to 'os2')
-rw-r--r--os2/Makefile.SHs7
-rw-r--r--os2/os2.c6
-rw-r--r--os2/os2ish.h1
3 files changed, 13 insertions, 1 deletions
diff --git a/os2/Makefile.SHs b/os2/Makefile.SHs
index 9c44823a21..23f6eadf06 100644
--- a/os2/Makefile.SHs
+++ b/os2/Makefile.SHs
@@ -55,6 +55,7 @@ AOUT_EXTRA_LIBS = $aout_extra_libs
!GROK!THIS!
$spitshell >>Makefile <<'!NO!SUBS!'
+PREPLIBRARY_LIBPERL = $(LIBPERL)
$(LIBPERL): perl.imp $(PERL_DLL) perl5.def libperl_override.lib
emximp -o $(LIBPERL) perl.imp
cp $(LIBPERL) perl.lib
@@ -126,7 +127,11 @@ perl.linkexp: perl.exports perl.map os2/os2.sym
# We link miniperl statically, since .DLL depends on $(DYNALOADER)
-miniperl.map miniperl: $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT)
+miniperl.map: miniperl
+
+miniperl.exe: miniperl
+
+miniperl: $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT)
$(CC) $(CLDFLAGS) -o miniperl miniperlmain$(OBJ_EXT) perl$(OBJ_EXT) `echo $(obj)|sed -e 's/\bop\./opmini./g'` $(libs) -Zmap -Zlinker /map/PM:VIO
@./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
diff --git a/os2/os2.c b/os2/os2.c
index 830d900163..8a32ee4d8e 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -2939,3 +2939,9 @@ my_getpwnam (__const__ char *n)
{
return passw_wrap(getpwnam(n));
}
+
+char *
+gcvt_os2 (double value, int digits, char *buffer)
+{
+ return gcvt (value, digits, buffer);
+}
diff --git a/os2/os2ish.h b/os2/os2ish.h
index 68b4dd9820..034fe82836 100644
--- a/os2/os2ish.h
+++ b/os2/os2ish.h
@@ -310,6 +310,7 @@ int my_rmdir (__const__ char *);
struct passwd *my_getpwent (void);
void my_setpwent (void);
void my_endpwent (void);
+char *gcvt_os2(double value, int digits, char *buffer);
struct group *getgrent (void);
void setgrent (void);