1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/devel/crossgo32/files/patch-ba

30 lines
793 B
Plaintext
Raw Normal View History

--- 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]);