From patchwork Tue Mar 13 18:51:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: nebelbank@posteo.de X-Patchwork-Id: 10280597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F22CE6038F for ; Tue, 13 Mar 2018 18:51:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF69126E35 for ; Tue, 13 Mar 2018 18:51:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D380C26E97; Tue, 13 Mar 2018 18:51:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FC4426E35 for ; Tue, 13 Mar 2018 18:51:46 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E364B267294; Tue, 13 Mar 2018 19:51:44 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 82C6D26729C; Tue, 13 Mar 2018 19:51:42 +0100 (CET) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by alsa0.perex.cz (Postfix) with ESMTP id C495B266E77 for ; Tue, 13 Mar 2018 19:51:39 +0100 (CET) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 041C2210B2 for ; Tue, 13 Mar 2018 19:51:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1520967099; bh=QSjGgH3x8I/Ir5kj2fQGLG5HyuV9Zm9QdLV+HsIQymg=; h=From:To:Cc:Subject:Date:From; b=Z6eNB844yJLpjZFbunvrkL5xVq1//KQ4YJD68xakFPOkhfPFIO2V0oYYilOo82p/t 3Z2E2qtTQgAv6NItv/mvwOdxEXD61eZ00p1TK5qHgpmsisfheFdcOeY9dCTl+4SMKd n3+LIvqSudFdDtCNwHYvobIIroEhoipA1UBVEAWJUXs6XK+IkcLamsPqeqytLXA4RU lQ0mKDqw+Yhx+kym9MrQKvUI+8GYV5SxyhXseNbMJ6T0JCXFF0/28fClbQgyNsp3mo Ewfuo0tWrohGTujavv1Aw11wnEbqsr6gOfAT9+PnolnVEn+thKyVyqXDuaiP0e54Tk JDqUXC6ANqDXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4013qG3n2Nz9rxT; Tue, 13 Mar 2018 19:51:38 +0100 (CET) From: erwin To: patch@alsa-project.org Date: Tue, 13 Mar 2018 19:51:24 +0100 Message-Id: <20180313185124.5352-1-nebelbank@posteo.de> X-Mailer: git-send-email 2.14.1 Cc: alsa-devel@alsa-project.org, erwin Subject: [alsa-devel] [PATCH - alsa-utils 1/1] aplay: Fix wav file not being split on 32 bit platforms X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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"