Subject: Re: port-i386/34186
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: netbsd-bugs
Date: 12/13/2006 00:55:02
The following reply was made to PR port-i386/34186; it has been noted by GNATS.

From: "Blair Sadewitz" <blair.sadewitz@gmail.com>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-i386/34186
Date: Tue, 12 Dec 2006 19:51:40 -0500

 ------=_Part_130864_1731564.1165971100330
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Here's a diff for what I'm currently using, with VM_PHYSSEG_MAX in
 lieu of MSGBUF_MAX_SEG cruft.
 
 I apologize for the attachment, but I cannot send email directly from
 my machine, and I do not have X installed, so I have to attach this
 using gmail.
 Perhaps someone will be kind enough to decode whatever it sends this
 attachment as and repost it, etc.
 
 Regards,
 
 --Blair
 
 ------=_Part_130864_1731564.1165971100330
 Content-Type: application/octet-stream; name="amd64-msgbuf.diff"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="amd64-msgbuf.diff"
 X-Attachment-Id: file0
 
 SW5kZXg6IHN5cy9hcmNoL2FtZDY0L2FtZDY0L21hY2hkZXAuYwo9PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxl
 OiAvY3Zzcm9vdC9zcmMvc3lzL2FyY2gvYW1kNjQvYW1kNjQvbWFjaGRlcC5jLHYKcmV0cmlldmlu
 ZyByZXZpc2lvbiAxLjQ0CmRpZmYgLXUgLXIxLjQ0IG1hY2hkZXAuYwotLS0gc3lzL2FyY2gvYW1k
 NjQvYW1kNjQvbWFjaGRlcC5jCTIzIE9jdCAyMDA2IDEyOjExOjQ3IC0wMDAwCTEuNDQKKysrIHN5
 cy9hcmNoL2FtZDY0L2FtZDY0L21hY2hkZXAuYwkxMyBEZWMg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