[PATCH - alsa-utils 1/1] aplay: Fix wav file not being split on 32 bit platforms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: erwin <nebelbank@xxxxxxxxx>

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 <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"
-- 
2.14.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux