diff mbox

[FFmpeg-devel] configure: define posix source on cygwin

Message ID 20161001115251.1120-1-timo@rothenpieler.org
State Accepted
Commit b7bd5b9794223f12203142159a22b176da2378e8
Headers show

Commit Message

Timo Rothenpieler Oct. 1, 2016, 11:52 a.m. UTC
Some function definitions are missing without it,
for example sigaction.

Fixes ticket #5868
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

Timo Rothenpieler Oct. 1, 2016, 7:41 p.m. UTC | #1
Will push tomorrow if nobody objects.
Josh Dekker Oct. 1, 2016, 7:54 p.m. UTC | #2
On 01/10/2016 20:41, Timo Rothenpieler wrote:
> Will push tomorrow if nobody objects.

LGTM, maybe add a note which says that it may have been a cygwin update 
which broke the build.

--
Josh
Timo Rothenpieler Oct. 2, 2016, 3:39 p.m. UTC | #3
applied
diff mbox

Patch

diff --git a/configure b/configure
index 74db9b5..ff2cb62 100755
--- a/configure
+++ b/configure
@@ -4806,6 +4806,7 @@  case $target_os in
         objformat="win32"
         enable dos_paths
         enabled shared && ! enabled small && check_cmd $windres --version && enable gnu_windres
+        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
         ;;
     *-dos|freedos|opendos)
         network_extralibs="-lsocket"