[FFmpeg-devel] [PATCH 4/4] libavutil/file_open: fix build with musl toolchain

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


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

The required feature test macro is:
fdopen(): _POSIX_C_SOURCE >= 1

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

diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index f3164eb..934585e 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _POSIX_C_SOURCE 1
+
 #include "config.h"
 #include "internal.h"
 #include "mem.h"
-- 
2.1.0



More information about the ffmpeg-devel mailing list