]> git.alsa-project.org Git - alsa-utils.git/commit
axfer: allow to be compiled with glibc-2.11 or former
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 27 Jan 2019 08:36:22 +0000 (17:36 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Jan 2019 15:45:51 +0000 (16:45 +0100)
commit257be19c47e62cd0553e740599802cec9182b37c
tree23e5c19c1392af258a5f63db45fd13fcdf61b9fc
parent2ba2066008c0fbe98374cc22e8a2eaa4e4e1b2bd
axfer: allow to be compiled with glibc-2.11 or former

The program, axfer, was developed in userspace with glibc-2.28. This
userspace is mostly compliant to POSIX:2008 and some additional macros
for poll event are officially available. The glibc supports them as a
default since its v2.12 release. It will be failed to be compiled with
old glibc or the other libraries for C standard APIs.

One of the purpose of axfer is an better alternative of aplay. In a
point of the purpose, it's preferable to be compiled with the old
libraries.

This commit adds conditional macros to be compiled with libraries for
old compliance level of POSIX.

Reported-by: Jay Foster <jay@systech.com>
Fixes: fce16d9279b6 ('axfer: add an implementation of waiter for select(2)')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
axfer/waiter-select.c