OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5514fd
)
Add more m4 tests
author
wifiextender
<router@archlinux.info>
Sat, 20 Aug 2016 09:32:26 +0000
(11:32 +0200)
committer
wifiextender
<router@archlinux.info>
Sat, 20 Aug 2016 09:32:26 +0000
(11:32 +0200)
m4/alsa.m4
patch
|
blob
|
history
diff --git
a/m4/alsa.m4
b/m4/alsa.m4
index
a2fe3e2
..
bc4ee41
100644
(file)
--- a/
m4/alsa.m4
+++ b/
m4/alsa.m4
@@
-92,6
+92,24
@@
AC_DEFUN([TEST_ALSA],[
],[
ERR([Homie, where is sys/soundcard.h ?])
])
+
+ NOTIFY([fcntl])
+ AC_COMPILE_IFELSE([
+ AC_LANG_SOURCE([[
+ #include <fcntl.h>
+ int main(void) {
+ int fd = 0;
+ if (-1 == (fd = open("elo", O_RDONLY))) {
+ return 0;
+ }
+ return 0;
+ }
+ ]])
+ ],[],[
+ COMPILE_FAILED([fcntl])
+ ]
+ )
+
])
])
],[