forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/audiofile: fix mingw32 build
Pick upstream patch for s/bzero()/memset()/ Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Sergei Trofimovich
committed
Jun 8, 2017
1 parent
aa40c7f
commit 8b9209b
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
bzero() is a POSIX-specific fuinction. | ||
x86_64-w64-mingw32-gcc does not provide one. | ||
|
||
https://github.com/mpruett/audiofile/commit/d9363a5d16af4ce55eb35c5aad9ca19bb9c53cbe | ||
|
||
commit d9363a5d16af4ce55eb35c5aad9ca19bb9c53cbe | ||
Author: Daniel Verkamp <[email protected]> | ||
Date: Mon Jul 4 21:57:44 2016 -0500 | ||
|
||
Replace bzero() with memset(). | ||
|
||
diff --git a/libaudiofile/CAF.cpp b/libaudiofile/CAF.cpp | ||
index d2b62ea..5752117 100644 | ||
--- a/libaudiofile/CAF.cpp | ||
+++ b/libaudiofile/CAF.cpp | ||
@@ -720,3 +720,3 @@ void CAFFile::initALACCompressionParams() | ||
m_codecData = new Buffer(codecDataSize); | ||
- bzero(m_codecData->data(), m_codecData->size()); | ||
+ memset(m_codecData->data(), 0, m_codecData->size()); | ||
|