ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/misc.c
(Generate patch)

Comparing BasiliskII/src/slirp/misc.c (file contents):
Revision 1.2 by cebix, 2005-06-30T21:25:26Z vs.
Revision 1.6 by asvitkine, 2007-01-22T14:48:40Z

# Line 6 | Line 6
6   */
7  
8   #define WANT_SYS_IOCTL_H
9 + #include <stdlib.h>
10   #include <slirp.h>
11  
12   u_int curtime, time_fasttimo, last_slowtimo, detach_time;
# Line 137 | Line 138 | struct quehead {
138          struct quehead *qh_rlink;
139   };
140  
141 < inline void
141 > void
142   insque(a, b)
143          void *a, *b;
144   {
# Line 150 | Line 151 | insque(a, b)
151          = (struct quehead *)element;
152   }
153  
154 < inline void
154 > void
155   remque(a)
156       void *a;
157   {
# Line 821 | Line 822 | void
822   fd_nonblock(fd)
823          int fd;
824   {
825 < #ifdef FIONBIO
826 <        int opt = 1;
825 > #if defined USE_FIONBIO && defined FIONBIO
826 >        ioctlsockopt_t opt = 1;
827          
828          ioctlsocket(fd, FIONBIO, &opt);
829   #else
# Line 838 | Line 839 | void
839   fd_block(fd)
840          int fd;
841   {
842 < #ifdef FIONBIO
843 <        int opt = 0;
842 > #if defined USE_FIONBIO && defined FIONBIO
843 >        ioctlsockopt_t opt = 0;
844          
845          ioctlsocket(fd, FIONBIO, &opt);
846   #else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines