Changeset 5406:3a3e9d18f561 in roaraudio


Ignore:
Timestamp:
02/13/12 15:16:34 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Ported to Win32 (again...) (pr1)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5404 r5406  
    1010        * Added VIO/DSTR for SOCKS proxy (See: #187) 
    1111        * Added support for stream direction RECPLAY. 
     12        * Ported to Win32 (again...) (pr1) 
    1213 
    1314v. 0.4 - Fri Nov 11 2011 20:12 CET 
  • include/libroar/vio.h

    r5388 r5406  
    4949#define ROAR_VIOF_CREAT     O_CREAT 
    5050#define ROAR_VIOF_TRUNC     O_TRUNC 
     51 
     52#ifndef ROAR_TARGET_WIN32 
    5153#define ROAR_VIOF_NONBLOCK  O_NONBLOCK 
     54#else 
     55#define ROAR_VIOF_NONBLOCK  0 
     56#endif 
    5257 
    5358#define ROAR_VIO_FLAGS_NONE        0x00000000UL 
  • libroar/basic.c

    r5393 r5406  
    234234   if ( stat(user_sock, &sockstat) == 0 ) { 
    235235    if ( S_ISCHR(sockstat.st_mode) ) { 
     236#ifdef O_NOCTTY 
    236237     return open(user_sock, O_RDWR|O_NOCTTY, 0666); 
     238#else 
     239     return open(user_sock, O_RDWR, 0666); 
     240#endif 
    237241    } 
    238242   } 
  • libroar/vio_socket.c

    r5396 r5406  
    179179 
    180180  if ( connect(fh, &(def->d.socket.sa.sa), len) == -1 ) { 
     181#ifdef EINPROGRESS 
    181182   if ( errno != EINPROGRESS ) { 
     183#endif 
    182184    roar_err_from_errno(); 
    183185    close(fh); 
    184186    return -1; 
     187#ifdef EINPROGRESS 
    185188   } 
     189#endif 
    186190  } 
    187191 } 
Note: See TracChangeset for help on using the changeset viewer.