]> git.sesse.net Git - vlc/commitdiff
Don't check for ssize_t twice, and don't use autoconf <= 2.1x syntax.
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 16:45:26 +0000 (16:45 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 16:45:26 +0000 (16:45 +0000)
configure.ac
include/vlc_common.h

index 66661342fc65d5f266bc49997fb0c0508b9e9c5b..c98b3b3bafeb2650f40ed78d4465a36448019dd0 100644 (file)
@@ -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
index 8fb87e4b9124ed54826609c4ac8f459d4282f360..d36dd11eaaca3b23776c4a6d2440d3fe5be3eeef 100644 (file)
@@ -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;