Changeset 1474:0a0bf0ac011b in roaraudio for libroar/file.c
- Timestamp:
- 03/30/09 19:34:29 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/file.c
r1470 r1474 37 37 #define BUFSIZE 8192 38 38 #define BUFMAX 65536 39 40 #ifdef ROAR_HAVE_IO_POSIX 41 #define _CAN_OPERATE 42 #endif 39 43 40 44 int roar_file_codecdetect(char * buf, int len) { … … 83 87 84 88 ssize_t roar_file_send_raw (int out, int in) { 89 #ifdef _CAN_OPERATE 85 90 ssize_t r = 0; 86 91 #ifdef ROAR_HAVE_LINUX_SENDFILE … … 115 120 #endif 116 121 return r; 122 #else 123 return -1; 124 #endif 117 125 } 118 126 … … 185 193 186 194 ssize_t roar_file_play_full (struct roar_connection * con, char * file, int exec, int passfh, struct roar_stream * s) { 195 #ifdef _CAN_OPERATE 187 196 int codec = -1; 188 197 int in, out = -1; … … 293 302 294 303 return r; 304 #else 305 return -1; 306 #endif 295 307 } 296 308
Note: See TracChangeset
for help on using the changeset viewer.