Merge pull request #314 from joerg-krause/development

Fix build without metadata support
This commit is contained in:
Mike Brady
2016-05-23 23:11:00 +01:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -513,6 +513,7 @@ uint64_t get_absolute_time_in_fp() {
return time_now_fp;
}
#ifdef CONFIG_METADATA
ssize_t non_blocking_write(int fd, const void *buf, size_t count) {
void *ibuf = (void *)buf;
size_t bytes_remaining = count;
@@ -545,6 +546,7 @@ ssize_t non_blocking_write(int fd, const void *buf, size_t count) {
return rc;
// return write(fd,buf,count);
}
#endif
/* from http://coding.debuntu.org/c-implementing-str_replace-replace-all-occurrences-substring#comment-722 */
+2
View File
@@ -763,7 +763,9 @@ int main(int argc, char **argv) {
//snprintf(config.service_name, 20 + 100, "Shairport Sync on %s", hostname);
set_requested_connection_state_to_output(1); // we expect to be able to connect to the output device
config.audio_backend_buffer_desired_length = 6615; // 0.15 seconds.
#ifdef CONFIG_METADATA
config.metadata_pipe_timeout = 5000; //milliseconds
#endif
config.udp_port_base = 6001;
config.udp_port_range = 100;