aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/windows/patches/0002-ffmpeg-zlib-config-conflict.patch
blob: 55b0b8ba43c31c7307201605dfb16b1b3e7889f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/configure b/configure
index 8569a60bf8..2091cea243 100755
--- a/configure
+++ b/configure
@@ -7553,6 +7553,9 @@ print_config CONFIG_ "$config_files" $CONFIG_LIST       \
                                      $CONFIG_EXTRA      \
                                      $ALL_COMPONENTS    \
 
+echo "#if defined(HAVE_UNISTD_H) && HAVE_UNISTD_H == 0" >> $TMPH
+echo "#undef HAVE_UNISTD_H" >> $TMPH
+echo "#endif" >> $TMPH
 echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
 echo "endif # FFMPEG_CONFIG_MAK" >> ffbuild/config.mak