SHA256
1
0
forked from pool/bin86
bin86/dev86-0.16.17.dif

149 lines
3.1 KiB
Plaintext

--- Makefile
+++ Makefile
@@ -18,7 +18,7 @@
INCLDIR= $(PREFIX)/lib/bcc
ASLDDIR= $(BINDIR)
MANDIR= $(PREFIX)/man
-CFLAGS= -O
+CFLAGS= -O2 -march=i486 -fno-strength-reduce
# Some makes take the last of a list as the default ...
all: make.fil
--- ar/ar.c
+++ ar/ar.c
@@ -500,7 +500,7 @@
break;
default:
- usage ("invalid operation %d", operation);
+ usage ("invalid operation %d", (char *) operation);
}
exit (0);
@@ -2003,8 +2003,7 @@
/* Print error message and exit. */
void
-fatal (s1, s2)
- char *s1, *s2;
+fatal (char *s1, char *s2)
{
error (s1, s2);
exit (1);
--- bcc/bcc.c
+++ bcc/bcc.c
@@ -600,9 +600,13 @@
command_reset()
{
#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
+#define MAXPATHLEN 4096
#endif
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
+#else
char buf[MAXPATHLEN];
+#endif
char ** prefix;
char * saved_cmd;
@@ -1308,10 +1312,10 @@
for(d=s=ptr; d && *s; s=d)
{
-#ifdef MAXPATHLEN
- char buf[MAXPATHLEN];
+#ifdef PATH_MAX
+ char buf[PATH_MAX];
#else
- char buf[1024];
+ char buf[MAXPATHLEN];
#endif
free(temp);
--- bcc/dbprintf.c
+++ bcc/dbprintf.c
@@ -1,6 +1,7 @@
#include <sys/types.h>
#include <fcntl.h>
+#include <string.h>
#if defined(__STDC__) && !defined(__FIRST_ARG_IN_AX__)
#include <stdarg.h>
--- bootblocks/Makefile
+++ bootblocks/Makefile
@@ -38,7 +38,7 @@
EXTRAS=minix.h zimage.s minix_elks.c lsys.c boot_win.c
install: makeboot
- install -m 755 -s makeboot $(DIST)$(PREFIX)/bin/makeboot
+ install -m 755 makeboot $(DIST)$(PREFIX)/bin/makeboot
monitor.com: $(MOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $(MONDEFS) -d $(MOBJ) -o monitor.com -M > monitor.sym
--- dis88/Makefile
+++ dis88/Makefile
@@ -28,6 +28,7 @@
CFLAGS=-O
LDFLAGS=
PREFIX=/usr
+MANDIR=$(PREFIX)/man
OBJ = disrel.o dismain.o distabs.o dishand.o disfp.o
@@ -37,8 +38,8 @@
$(CC) $(LDFLAGS) -o dis88 $(OBJ)
install: dis88
- install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
- install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
+ install -m 755 dis88 $(DIST)$(PREFIX)/bin/dis86
+ install -m 644 dis88.1 $(DIST)$(MANDIR)/man1/dis86.1
$(OBJ): dis.h a.out.h
--- elksemu/Makefile
+++ elksemu/Makefile
@@ -42,7 +42,7 @@
# to redirect.
install: elksemu
install -d $(DIST)/lib
- install -s -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
+ install -o root -g root -m 4555 elksemu $(DIST)/lib/elksemu
clean realclean:
rm -f $(OBJ) binfmt_elks.o elksemu call_tab.v defn_tab.v efile.h
--- ld/dumps.c
+++ ld/dumps.c
@@ -2,6 +2,7 @@
/* Copyright (C) 1994 Bruce Evans */
+#include <string.h>
#include "const.h"
#include "obj.h"
#include "type.h"
--- makefile.in
+++ makefile.in
@@ -78,7 +78,7 @@
# Install files with the userid of the currently running process.
INDAT=-m 644
-INEXE=-m 755 -s
+INEXE=-m 755
INSCR=-m 755
#ifdef __CYGWIN__
--- as/type.h.mm 2001-06-23 20:01:37.000000000 +0000
+++ as/type.h 2007-10-02 16:11:08.000000000 +0000
@@ -149,7 +149,7 @@ struct macro_s
struct sym_listing_s
{
- char name[SYMLIS_NAMELEN];
+ char name[SYMLIS_NAMELEN + 1];
char zname[2];
char segm[1];
char pad1[1];