]> git.ipfire.org Git - thirdparty/shairport-sync.git/commit
Fix build without metadata support 314/head
authorJörg Krause <joerg.krause@embedded.rocks>
Mon, 23 May 2016 19:58:18 +0000 (21:58 +0200)
committerJörg Krause <joerg.krause@embedded.rocks>
Mon, 23 May 2016 20:01:46 +0000 (22:01 +0200)
commit28efe16f7330fe4f7dc14215d4d5a1cc02f53da2
tree30536ad42ee974917079a5c1e35a384764fd9930
parent8ae176933ef6baabc3b092c1cee34072c5455de6
Fix build without metadata support

Commit f36352dc4ece27fda24ef736183b8ff5729b8c96 introduced the parameter
pipe_timeout for the metadata config. If shairport-sync is now configured
without metadata support, the build fails with:

```
shairport.c: In function ‘main’:
shairport.c:766:9: error: ‘shairport_cfg {aka struct <anonymous>}’ has no member named ‘metadata_pipe_timeout’
   config.metadata_pipe_timeout = 5000; //milliseconds

```

Fix this by opting-out the affected code with CONFIG_METADATA.
common.c
shairport.c