Changeset 1475:a43095c6fc0e in roaraudio


Ignore:
Timestamp:
03/30/09 19:39:00 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

only use POSIX file IO if we have POSIX file IO ;)

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r1436 r1475  
    4343 int is_decnet = 0; 
    4444 char * obj = NULL; 
    45 #ifndef ROAR_TARGET_WIN32 
     45#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 
    4646 struct passwd * pwd; 
    4747#endif 
     
    203203 roar_req(con, &m, NULL); 
    204204 
     205#ifdef ROAR_HAVE_IO_POSIX 
    205206 close(con->fh); 
     207#endif 
    206208 
    207209 con->fh = -1; 
  • libroar/stream.c

    r1211 r1475  
    296296 } 
    297297 
     298#ifdef ROAR_HAVE_IO_POSIX 
    298299 return write(s->fh, data, len); 
     300#endif 
     301 
     302 return -1; 
    299303} 
    300304 
Note: See TracChangeset for help on using the changeset viewer.