1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/devel/crossgo32/files/patch-ba
Thomas Gellekum 0a93e3e845 From Joel's PR:
Here is an update for the crossgo32 port. I have added an extra
	distribution which includes a utility to convert the COFF binaries
	into dos EXE files. I also take over as maintainer with the previous
	maintainers permission.

PR:		3987
Submitted by:	Joel Sutton <sutton@aardvark.apana.org.au>
1997-08-13 09:06:55 +00:00

30 lines
793 B
Plaintext

--- dosrel-1.0/coff2exe.c.orig Sun May 18 20:24:59 1997
+++ dosrel-1.0/coff2exe.c Sun May 18 20:23:50 1997
@@ -79,14 +79,14 @@
while (left)
{
char buf[512];
- int r = _read(stub_file, buf, 512);
+ int r = read(stub_file, buf, 512);
if (wrote == 0)
hsize = align_hsize(stub_length, (unsigned char *)buf);
- _write(ofile, buf, r);
+ write(ofile, buf, r);
left -= r;
wrote += r;
}
- _write(ofile, buf, 512-((int)wrote&511));
+ write(ofile, buf, 512-((int)wrote&511));
}
else
{
@@ -120,7 +120,7 @@
if (argc > 2 && strcmp(argv[1], "-s") == 0)
{
struct stat s;
- stub_file = _open(argv[2], O_RDONLY);
+ stub_file = open(argv[2], O_RDONLY);
if (stub_file < 0)
{
perror(argv[2]);