]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay: Fix wav file not being split on 32 bit platforms
authorerwin <nebelbank@posteo.de>
Tue, 13 Mar 2018 18:51:24 +0000 (19:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Mar 2018 21:07:08 +0000 (22:07 +0100)
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 <tiwai@suse.de>
aplay/aplay.c

index 6b740c281f8e439cf435986cc5d7b218d0175544..bbd7fffa04fc3be6afc0449d1e378ce70c38041f 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #define _GNU_SOURCE
+#include "aconfig.h"
 #include <stdio.h>
 #include <malloc.h>
 #include <unistd.h>
@@ -49,7 +50,6 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <endian.h>
-#include "aconfig.h"
 #include "gettext.h"
 #include "formats.h"
 #include "version.h"