From d5a92ea9241e6b6b531220df28c2fc1b569388f3 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Tue, 29 Oct 1996 23:01:55 +0000 Subject: Split the Modula-3 port into two pieces, creating a new port "modula-3-lib". It installs only the shared libraries needed for executing Modula-3 programs. This saves a lot of disk space for people who need to run Modula-3 programs but don't need to build them. The original "modula-3" port now depends on this one, and uses it to install the compiler and the rest of the development system. Also, everything is now built with optimization. I have been testing this for at least a month, and haven't seen any problems from it. It makes the libraries and executables substantially smaller. This new port also includes some hooks that will make SOCKS support possible in the near future. --- lang/modula-3-lib/files/patch-bf | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lang/modula-3-lib/files/patch-bf (limited to 'lang/modula-3-lib/files/patch-bf') diff --git a/lang/modula-3-lib/files/patch-bf b/lang/modula-3-lib/files/patch-bf new file mode 100644 index 000000000000..fbdd67167eb5 --- /dev/null +++ b/lang/modula-3-lib/files/patch-bf @@ -0,0 +1,32 @@ +Fix incorrect layout for the Udir.dirent structure. + +Index: m3/m3core/src/unix/freebsd-2/Udir.i3 +=================================================================== +RCS file: /home/jdp/m3-cvs/m3/m3core/src/unix/freebsd-2/Udir.i3,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 Udir.i3 +--- Udir.i3 1996/09/24 05:22:00 1.1.1.1 ++++ Udir.i3 1996/09/24 05:32:44 +@@ -40,10 +40,10 @@ + *) + TYPE + dirent = RECORD (* describes directory entry *) +- d_fileno: Ctypes.long; (* inode number of entry *) +- d_reclen: Ctypes.unsigned_char; (* record length in bytes *) ++ d_fileno: Ctypes.unsigned_long; (* inode number of entry *) ++ d_reclen: Ctypes.unsigned_short; (* record length in bytes *) + d_type: Ctypes.unsigned_char; (* file types, see above *) +- d_namelen: Ctypes.unsigned_short; (* name length in bytes *) ++ d_namelen: Ctypes.unsigned_char; (* name length in bytes *) + d_name: ARRAY [0..MAXNAMLEN] OF Ctypes.char; (* name *) + END; + +@@ -53,7 +53,7 @@ + dd_fd: Ctypes.int; (* file descriptor associated with directory *) + dd_loc: Ctypes.long; (* offset in current buffer *) + dd_size: Ctypes.long; (* amount of data returned by getdirentries *) +- dd_buf: UNTRACED REF Ctypes.char; (* data buffer *) ++ dd_buf: Ctypes.char_star; (* data buffer *) + dd_len: Ctypes.int; (* size of data buffer *) + dd_seek: Ctypes.long (* magic cookie returned by getdirentries *); + dd_rewind: Ctypes.long; (* magic cookie for rewinding *) -- cgit v1.2.3