1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/modula-3-lib/files/patch-aw
John Polstra d5a92ea924 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.
1996-10-29 23:01:55 +00:00

45 lines
1.4 KiB
Plaintext

Fix some things in the Uin interface for FreeBSD. Most important is the
change to "struct_sockaddr_in".
Index: m3/m3core/src/unix/freebsd-2/Uin.i3
===================================================================
RCS file: /home/jdp/m3-cvs/m3/m3core/src/unix/freebsd-2/Uin.i3,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Uin.i3
--- Uin.i3 1996/09/24 05:22:00 1.1.1.1
+++ Uin.i3 1996/09/24 05:32:41
@@ -8,7 +8,7 @@
INTERFACE Uin;
-FROM Ctypes IMPORT short, char;
+FROM Ctypes IMPORT char;
FROM Utypes IMPORT u_char, u_short, u_long;
IMPORT Word;
@@ -25,9 +25,12 @@
IPPROTO_PUP = 12; (* pup *)
IPPROTO_UDP = 17; (* user datagram protocol *)
IPPROTO_IDP = 22; (* xns idp *)
- IPPROTO_HELLO = 63; (* "hello" routing protocol *)
- IPPROTO_ND = 77; (* UNOFFICIAL net disk proto *)
+ IPPROTO_TP = 29; (* tp-4 w/ class negotiation *)
+ IPPROTO_RSVP = 46; (* resource reservation *)
+ IPPROTO_EON = 80; (* ISO cnlp *)
+ IPPROTO_ENCAP = 98; (* encapsulation header *)
+ IPPROTO_DIVERT = 254; (* divert pseudo-protocol *)
IPPROTO_RAW = 255; (* raw IP packet *)
IPPROTO_MAX = 256;
@@ -128,7 +131,8 @@
(* Socket address, internet style. *)
TYPE
struct_sockaddr_in = RECORD
- sin_family: short;
+ sin_len: u_char;
+ sin_family: u_char;
sin_port: u_short;
sin_addr: struct_in_addr;
sin_zero: ARRAY [0..7] OF char;