summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure28
-rw-r--r--osdep/Makefile1
-rw-r--r--osdep/ftello.c19
3 files changed, 0 insertions, 48 deletions
diff --git a/configure b/configure
index 21498c97d1..ed356f8316 100755
--- a/configure
+++ b/configure
@@ -7128,23 +7128,6 @@ else
echores "no"
fi
-echocheck "ftello()"
-# if we don't have ftello use the osdep/ compatibility module
-cat > $TMPC << EOF
-#include <stdio.h>
-#include <sys/types.h>
-int main (void) { ftello(stdin); return 0; }
-EOF
-_ftello=no
-cc_check && _ftello=yes
-if test "$_ftello" = yes ; then
- _def_ftello='#define HAVE_FTELLO 1'
- _need_ftello=no
-else
- _def_ftello='#undef HAVE_FTELLO'
- _need_ftello=yes
-fi
-echores "$_ftello"
# Dynamic linking flags
# (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
@@ -7411,7 +7394,6 @@ HAVE_XVMC_ACCEL = $_xvmc
HAVE_SYS_MMAN_H = $_mman
HAVE_POSIX_SELECT = $_posix_select
-NEED_FTELLO = $_need_ftello
NEED_GETTIMEOFDAY = $_need_gettimeofday
NEED_GLOB = $_need_glob
NEED_SCANDIR = $_need_scandir
@@ -7734,16 +7716,6 @@ $_def_soundcard
/* Define this if your system has the sysinfo header */
$_def_sys_sysinfo
-/* Define this if your system has ftello() */
-
-$_def_ftello
-#ifndef HAVE_FTELLO
-/* Need these for FILE and off_t an config.h is usually before other includes*/
-#include <stdio.h>
-#include <sys/types.h>
-off_t ftello(FILE *);
-#endif
-
/* Define this if your system has the "malloc.h" header file */
$_def_malloc
diff --git a/osdep/Makefile b/osdep/Makefile
index 34e360e7a7..89820a7aa9 100644
--- a/osdep/Makefile
+++ b/osdep/Makefile
@@ -5,7 +5,6 @@ LIBNAME_COMMON = libosdep.a
SRCS_COMMON-$(HAVE_SYS_MMAN_H) += mmap_anon.c
SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
-SRCS_COMMON-$(NEED_FTELLO) += ftello.c
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += gettimeofday.c
SRCS_COMMON-$(NEED_GLOB) += glob-win.c
SRCS_COMMON-$(NEED_SCANDIR) += scandir.c
diff --git a/osdep/ftello.c b/osdep/ftello.c
deleted file mode 100644
index d11710b89f..0000000000
--- a/osdep/ftello.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * ftello.c
- * 64-bit version of ftello() for systems which do not have it
- */
-
-#include "config.h"
-
-#include <stdio.h>
-#include <sys/types.h>
-
-off_t
-ftello(FILE *stream)
-{
- fpos_t floc;
-
- if (fgetpos(stream, &floc) != 0)
- return -1;
- return floc;
-}