[segyio] 291/376: Check for _ftelli64

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit 06b93b2571f6fc0d4de8c493f9946f2f3225d6e3
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date:   Mon May 8 14:15:36 2017 +0200

    Check for _ftelli64
---
 cmake/check_includes.cmake | 5 +++++
 lib/src/segy.c             | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/cmake/check_includes.cmake b/cmake/check_includes.cmake
index a7d022c..d6e4be4 100644
--- a/cmake/check_includes.cmake
+++ b/cmake/check_includes.cmake
@@ -30,4 +30,9 @@ if (HAVE_SYS_STAT_H)
     if (HAVE_FSTATI64)
         add_definitions("-DHAVE_FSTATI64")
     endif ()
+
+    check_function_exists(_ftelli64 HAVE_FTELLI64)
+    if (HAVE_FTELLI64)
+        add_definitions("-DHAVE_FTELLI64")
+    endif ()
 endif()
diff --git a/lib/src/segy.c b/lib/src/segy.c
index fbc1485..71b51aa 100644
--- a/lib/src/segy.c
+++ b/lib/src/segy.c
@@ -399,7 +399,7 @@ int segy_flush( segy_file* fp, bool async ) {
 }
 
 long long segy_ftell( segy_file* fp ) {
-#ifdef HAVE_FSTATI64
+#ifdef HAVE_FTELLI64
     // assuming we're on windows. This function is a little rough, but only
     // meant for testing - it's not a part of the public interface.
     return _ftelli64( fp->fp );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list