summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-04-10 11:28:57 +0300
committerMartin Storsjö <martin@martin.st>2019-04-16 13:10:42 +0300
commitc93e92f2b25f4174350ded3f59ad117ec8eb1fe4 (patch)
tree52bf60d2d37ba7b217326a2e01fcb9233d2abadf
parentc0bd865ad60da31282c5d8e1000c98366249c31e (diff)
downloadffmpeg-streaming-c93e92f2b25f4174350ded3f59ad117ec8eb1fe4.zip
ffmpeg-streaming-c93e92f2b25f4174350ded3f59ad117ec8eb1fe4.tar.gz
configure: Include time.h when checking for gmtime_r and localtime_r
These functions are available in time.h (conditional on posix thread safe functions) on mingw. Previously, these functions weren't detected by configure, and libavutil/time_internal.h provided replacements, even if time.h actually contained definitions of them. These mingw inline functions are currently defined as "extern __inline __attribute__((__gnu_inline__))". In this case, redefining a new static inline version of the same function with the same name is tolerated. Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 3e8f2dc..8c46a87 100755
--- a/configure
+++ b/configure
@@ -4543,9 +4543,7 @@ check_func gethrtime
check_func getopt
check_func getrusage
check_func gettimeofday
-check_func gmtime_r
check_func isatty
-check_func localtime_r
check_func mkstemp
check_func mmap
check_func mprotect
@@ -4561,6 +4559,8 @@ check_func usleep
check_func_headers io.h setmode
check_func_headers mach/mach_time.h mach_absolute_time
check_func_headers stdlib.h getenv
+check_func_headers time.h gmtime_r
+check_func_headers time.h localtime_r
check_func_headers windows.h GetProcessAffinityMask
check_func_headers windows.h GetProcessTimes
OpenPOWER on IntegriCloud