summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2021-03-19 11:14:47 +1100
committerDaniel Black <daniel@mariadb.org>2021-03-19 11:14:53 +1100
commit4ca4d606ac96cabe013eb5c9e4eda92233cf1697 (patch)
tree6f88fce755381c7ac5c923118ecb051354bc6d19
parentb34bb81eaf0f1fd653f93257fbbdaa4c31ea8ea5 (diff)
downloadmariadb-git-bb-10.2-danielblack-aix-notell.tar.gz
myseek: AIX has no "tell"bb-10.2-danielblack-aix-notell
AIX detects tell in the configure however it really isn't there. Use the my_seek aka lseek implementation.
-rw-r--r--mysys/my_seek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_seek.c b/mysys/my_seek.c
index 6a370b0ad43..db364ccddda 100644
--- a/mysys/my_seek.c
+++ b/mysys/my_seek.c
@@ -86,7 +86,7 @@ my_off_t my_tell(File fd, myf MyFlags)
DBUG_ENTER("my_tell");
DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags));
DBUG_ASSERT(fd >= 0);
-#if defined (HAVE_TELL) && !defined (_WIN32)
+#if defined (HAVE_TELL) && !defined (_WIN32) && !defined(_AIX)
pos= tell(fd);
#else
pos= my_seek(fd, 0L, MY_SEEK_CUR,0);