summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-06-25 16:18:28 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-06-25 16:18:28 +0000
commit45c10110202a8ed1c43f32f744dbb9f470163767 (patch)
tree248847deac2ce8ae6ab79273d481927d40cce038
parentd6d0182e205d262d9df39eeaea77a9dd6cc728f1 (diff)
Remove localtime_r implementation for systems that don't have it.
It is no longer used. Originally committed as revision 9425 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure2
-rw-r--r--libavformat/os_support.c13
2 files changed, 0 insertions, 15 deletions
diff --git a/configure b/configure
index 0ecacceadb..29a3938caf 100755
--- a/configure
+++ b/configure
@@ -668,7 +668,6 @@ HAVE_LIST="
freetype2
imlib2
inet_aton
- localtime_r
lrintf
machine_ioctl_bt848_h
machine_ioctl_meteor_h
@@ -1531,7 +1530,6 @@ check_header byteswap.h
check_header arpa/inet.h
check_func inet_aton
-check_func localtime_r
enabled zlib && check_lib zlib.h zlibVersion -lz || zlib="no"
# ffserver uses poll(),
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index ded36d6400..e627367593 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -58,19 +58,6 @@ int64_t av_gettime(void)
#endif
}
-#if !defined(HAVE_LOCALTIME_R)
-struct tm *localtime_r(const time_t *t, struct tm *tp)
-{
- struct tm *l;
-
- l = localtime(t);
- if (!l)
- return 0;
- *tp = *l;
- return tp;
-}
-#endif /* !defined(HAVE_LOCALTIME_R) */
-
#ifdef CONFIG_NETWORK
#include "network.h"