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 <jkra...@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to