[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-cvs
Subject:    [Bochs-cvs] CVS: bochs/iodev serial.cc,1.65,1.66
From:       Volker Ruppert <vruppert () users ! sourceforge ! net>
Date:       2005-07-11 16:24:50
Message-ID: E1Ds15O-0001Qw-9p () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/bochs/bochs/iodev
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5450/iodev

Modified Files:
	serial.cc 
Log Message:
- missing include for FreeBSD and others added
- set member sin_len of struct sockaddr_in if present


Index: serial.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/iodev/serial.cc,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- serial.cc	10 Jul 2005 16:51:08 -0000	1.65
+++ serial.cc	11 Jul 2005 16:24:47 -0000	1.66
@@ -40,6 +40,7 @@
 #include "iodev.h"
 #ifndef WIN32
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
 #endif
 
@@ -317,6 +318,9 @@
         }
 
         memset ((char*) &sin, 0, sizeof (sin));
+#if BX_HAVE_SOCKADDR_IN_SIN_LEN
+       sin.sin_len = sizeof sin;
+#endif
         memcpy ((char*) &(sin.sin_addr), hp->h_addr, hp->h_length);
         sin.sin_family = hp->h_addrtype;
         sin.sin_port = htons (port);



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic