[FFmpeg-devel] [PATCH v2 3/4] libavutil/file: fix build with musl toolchain

Jörg Krause jkrause at posteo.de
Tue Sep 2 12:41:40 CEST 2014


Add the feature test macro which is required for building with the 
musl toolchain.

The required feature test macro is:
mkstemp(): _POSIX_C_SOURCE >= 200112L

Signed-off-by: Jörg Krause <jkrause at posteo.de>
---
Changes v1 -> v2:
  - Fixed commit message
---
 libavutil/file.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/file.c b/libavutil/file.c
index 359d290..cc80050 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _POSIX_C_SOURCE 200112L
+
 #include "config.h"
 #include "file.h"
 #include "internal.h"
-- 
2.1.0



More information about the ffmpeg-devel mailing list