From: erwin Date: Tue, 13 Mar 2018 18:51:24 +0000 (+0100) Subject: aplay: Fix wav file not being split on 32 bit platforms X-Git-Tag: v1.1.6~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=588b3aa0ef5e0fc3c9056302ac3e5679a7a1dfe8;p=alsa-utils.git aplay: Fix wav file not being split on 32 bit platforms On my 32 bit armhf board arecord exits because of write() returning EFBIG when the output file size reaches 2147483647 bytes. To fix this, include generated header file before system header files so that _FILE_OFFSET_BITS=64 is used properly, as required in documentation "man feature_test_macros". Signed-off-by: Takashi Iwai --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 6b740c2..bbd7fff 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -27,6 +27,7 @@ */ #define _GNU_SOURCE +#include "aconfig.h" #include #include #include @@ -49,7 +50,6 @@ #include #include #include -#include "aconfig.h" #include "gettext.h" #include "formats.h" #include "version.h"