changeset 23778:ba16c3a35250

Remove unused ftello() check and fallback implementation.
author diego
date Tue, 17 Jul 2007 09:41:47 +0000
parents 28964958fb7b
children 56aa4200a492
files configure osdep/Makefile osdep/ftello.c
diffstat 3 files changed, 0 insertions(+), 48 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 17 09:40:32 2007 +0000
+++ b/configure	Tue Jul 17 09:41:47 2007 +0000
@@ -7128,23 +7128,6 @@
   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_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 @@
 /* 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
 
--- a/osdep/Makefile	Tue Jul 17 09:40:32 2007 +0000
+++ b/osdep/Makefile	Tue Jul 17 09:41:47 2007 +0000
@@ -5,7 +5,6 @@
 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
--- a/osdep/ftello.c	Tue Jul 17 09:40:32 2007 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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;
-}