summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-06-18 07:37:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-06-18 07:37:30 (GMT)
commitb2326c6455cbaac9f136f504622c5a35fa9dbb44 (patch)
tree015ba6aaf605b9dedff80ddfb9f78586d99af2c9 /unix/tcl.m4
parent33d0981efca16ee4e24824c6d7daa62604cc335b (diff)
downloadtk-b2326c6455cbaac9f136f504622c5a35fa9dbb44.zip
tk-b2326c6455cbaac9f136f504622c5a35fa9dbb44.tar.gz
tk-b2326c6455cbaac9f136f504622c5a35fa9dbb44.tar.bz2
Sync DIR64 changes from Tcl to Tk too (even though DIR64 isn't actually used for Tk. Just for completeness.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 7552f90..7db9e3b 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -2755,7 +2755,7 @@ AC_DEFUN([SC_TCL_EARLY_FLAGS],[
# Might define the following vars:
# TCL_WIDE_INT_IS_LONG
# TCL_WIDE_INT_TYPE
-# HAVE_STRUCT_DIRENT64
+# HAVE_STRUCT_DIRENT64, HAVE_DIR64
# HAVE_STRUCT_STAT64
# HAVE_TYPE_OFF64_T
#
@@ -2791,6 +2791,15 @@ AC_DEFUN([SC_TCL_64BIT_FLAGS], [
AC_DEFINE(HAVE_STRUCT_DIRENT64, 1, [Is 'struct dirent64' in <sys/types.h>?])
fi
+ AC_CACHE_CHECK([for DIR64], tcl_cv_DIR64,[
+ AC_TRY_COMPILE([#include <sys/types.h>
+#include <dirent.h>],[struct dirent64 *p; DIR64 d = opendir64(".");
+ p = readdir64(d); rewinddir64(d); closedir64(d);],
+ tcl_cv_DIR64=yes,tcl_cv_DIR64=no)])
+ if test "x${tcl_cv_DIR64}" = "xyes" ; then
+ AC_DEFINE(HAVE_DIR64, 1, [Is 'DIR64' in <sys/types.h>?])
+ fi
+
AC_CACHE_CHECK([for struct stat64], tcl_cv_struct_stat64,[
AC_TRY_COMPILE([#include <sys/stat.h>],[struct stat64 p;
],