diff options
author | dgp <dgp@users.sourceforge.net> | 2004-11-25 00:57:46 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-11-25 00:57:46 (GMT) |
commit | 9a60fe478e4153e06a2fadca792181e3826fa0e8 (patch) | |
tree | b39425a09a407aa2c672c2347fcc78989e86706b /unix/configure | |
parent | d97e640af4e2f688cbc70b909fad44606f84b0a6 (diff) | |
download | tcl-9a60fe478e4153e06a2fadca792181e3826fa0e8.zip tcl-9a60fe478e4153e06a2fadca792181e3826fa0e8.tar.gz tcl-9a60fe478e4153e06a2fadca792181e3826fa0e8.tar.bz2 |
* unix/tcl.m4 (SC_ENABLE_THREADS): Corrected failure to determine
the number of arguments for readdir_r on SunOS systems. [Bug 1071701]
* unix/configure: autoconf-2.57
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index 1bc459b..6c077b1 100755 --- a/unix/configure +++ b/unix/configure @@ -4218,6 +4218,13 @@ cat >>confdefs.h <<\_ACEOF #define _REENTRANT 1 _ACEOF + if test "`uname -s`" = "SunOS" ; then + +cat >>confdefs.h <<\_ACEOF +#define _POSIX_PTHREAD_SEMANTICS 1 +_ACEOF + + fi cat >>confdefs.h <<\_ACEOF #define _THREAD_SAFE 1 @@ -4982,7 +4989,13 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> #include <sys/types.h> -#include <sys/dir.h> +#ifdef NO_DIRENT_H +# include <sys/dir.h> /* logic from tcl/compat/dirent.h * +# define dirent direct * */ +#else +# include <dirent.h> +#endif + int main () { @@ -5025,7 +5038,13 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> #include <sys/types.h> -#include <sys/dir.h> +#ifdef NO_DIRENT_H +# include <sys/dir.h> /* logic from tcl/compat/dirent.h * +# define dirent direct * */ +#else +# include <dirent.h> +#endif + int main () { |