History

ALSA: uapi: Add linux/types.h include back (but carefully)

A few uapi/sound/*.h headers have been corrected for recovering from the compile errors with the existing user-space code (alsa-lib) by the recent commits. OTOH, these introduced another regression, as now linux/types.h inclusion became mandatory for the uapi header checks. As a compromise, this patch re-adds linux/types.h inclusions again, but conditionally not to break other non-standard user-space stuff again.

Takashi Iwai committed 6 years ago

Commit d06ed0c1 parent 7d8d3c33 files · +12 −0Browse files

Showing the changes to include/uapi (3 of 3 files). Show all

Unified · Split

3 files
  1. include/uapi/sound/emu10k1.h +4 −0
  2. include/uapi/sound/hdsp.h +4 −0
  3. include/uapi/sound/hdspm.h +4 −0
include/uapi/sound/emu10k1.h+4−0
@@ -23,6 +23,10 @@ · 22 unmodified lines
2323 #ifndef _UAPI__SOUND_EMU10K1_H
2424 #define _UAPI__SOUND_EMU10K1_H
2525
26+#ifdef __linux__
27+#include <linux/types.h>
28+#endif
29+
2630 /*
2731 * ---- FX8010 ----
2832 */
include/uapi/sound/hdsp.h+4−0
@@ -20,6 +20,10 @@ · 19 unmodified lines
2020 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2121 */
2222
23+#ifdef __linux__
24+#include <linux/types.h>
25+#endif
26+
2327 #define HDSP_MATRIX_MIXER_SIZE 2048
2428
2529 enum HDSP_IO_Type {
include/uapi/sound/hdspm.h+4−0
@@ -21,6 +21,10 @@ · 20 unmodified lines
2121 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2222 */
2323
24+#ifdef __linux__
25+#include <linux/types.h>
26+#endif
27+
2428 /* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */
2529 #define HDSPM_MAX_CHANNELS 64
2630