diff mbox

[FFmpeg-devel] cmdutils: fix implicit declaration of SetDllDirectory function

Message ID 7ab2e01e-40ea-9113-fb1e-ce3bec351129@noa-archive.com
State Accepted
Headers show

Commit Message

Tobias Rapp Aug. 29, 2016, 1:42 p.m. UTC
Attached patch fixes a build error on my system (Ubuntu 14.04, mingw-w64 
3.1.0, gcc-mingw-w64 4.8.2) introduced by commit 
3bf142c77337814458ed8e036796934032d9837f.

As the original commit has been backported to older releases (2.8, 3.0 
and 3.1 as far as I can see) it probably makes sense to backport this 
fix, too.

Regards,
Tobias
diff mbox

Patch

From 97c153fab37a44946e54fcea6b48259cb0c24143 Mon Sep 17 00:00:00 2001
From: Tobias Rapp <t.rapp@noa-archive.com>
Date: Mon, 29 Aug 2016 15:25:58 +0200
Subject: [PATCH] cmdutils: fix implicit declaration of SetDllDirectory
 function

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
---
 cmdutils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmdutils.c b/cmdutils.c
index 6960f8c..44f44cd 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -61,6 +61,9 @@ 
 #include <sys/time.h>
 #include <sys/resource.h>
 #endif
+#ifdef _WIN32
+#include <windows.h>
+#endif
 
 static int init_report(const char *env);
 
-- 
1.9.1