Skip to content

Commit e22ee35

Browse files
committed
fix(alsa-lib)
closes #11250
1 parent bb3fc97 commit e22ee35

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

projects/alsa-project.org/alsa-lib/package.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ platforms:
1414

1515
build:
1616
script:
17+
# add def for older kernels
18+
- run: sed -i '1i int close_range(unsigned int first, unsigned int last, int flags);' ucm_exec.c
19+
working-directory: src/ucm
20+
if: '>=1.2.15'
1721
- ./configure $ARGS
1822
- make --jobs {{ hw.concurrency }} install
1923
env:
@@ -31,6 +35,14 @@ provides:
3135
- bin/aserver
3236

3337
test:
34-
script:
35-
- cc test.c -lasound -o test
36-
- ./test
38+
- run: cc $FIXTURE -lasound -o test
39+
fixture:
40+
extname: c
41+
content: |
42+
#include <alsa/asoundlib.h>
43+
int main(void) {
44+
snd_ctl_card_info_t *info;
45+
snd_ctl_card_info_alloca(&info);
46+
return 0;
47+
}
48+
- ./test

projects/alsa-project.org/alsa-lib/test.c

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)