audio/amused: fix sndio detection on gcc arches; no package changes.
The configure script failed to pick up sndio because the test for it was lacking a final `return 0' and gcc complained that "control reaches the end of non-void function".
This commit is contained in:
parent
c56da5c31c
commit
b74f154ad9
21
audio/amused/patches/patch-tests_c
Normal file
21
audio/amused/patches/patch-tests_c
Normal file
@ -0,0 +1,21 @@
|
||||
fix sndio detection: gcc complains that "control reaches end of non-void
|
||||
function".
|
||||
|
||||
Index: tests.c
|
||||
--- tests.c.orig
|
||||
+++ tests.c
|
||||
@@ -526,6 +526,7 @@ main(void)
|
||||
hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1);
|
||||
sio_flush(hdl);
|
||||
sio_close(hdl);
|
||||
+ return 0;
|
||||
}
|
||||
#endif /* TEST_SIO_FLUSH */
|
||||
#if TEST_SCAN_SCALED
|
||||
@@ -950,5 +951,6 @@ main(void)
|
||||
struct sio_hdl *hdl;
|
||||
hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1);
|
||||
sio_close(hdl);
|
||||
+ return 0;
|
||||
}
|
||||
#endif /* TEST_LIB_SNDIO */
|
Loading…
Reference in New Issue
Block a user