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

Jörg Krause jkrause at posteo.de
Tue Sep 2 12:37:21 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.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