Commit a147237e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't check for ssize_t twice, and don't use autoconf <= 2.1x syntax.

parent dd700da1
......@@ -807,7 +807,12 @@ fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
AC_HEADER_TIME
AC_CHECK_TYPE(ssize_t, int)
dnl LP64 adn LLP64 architectures had better define ssize_t by themselves...
AH_TEMPLATE(ssize_t, [Define to `int' if <stddef.h> does not define.])
AC_CHECK_TYPE(ssize_t,, [
AC_DEFINE(ssize_t, int)
])
AC_SEARCH_LIBS(poll, [poll], [AC_DEFINE(HAVE_POLL, 1, [Define to 1 if the OS is usabl... err, has poll().])])
dnl Check for dirent
......
......@@ -126,10 +126,6 @@ typedef int ptrdiff_t;
# endif
#endif
#if (defined( WIN32 ) || defined( UNDER_CE )) && !defined( _SSIZE_T_ )
typedef int ssize_t;
#endif
/* Counter for statistics and profiling */
typedef unsigned long count_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment