[vlc-commits] configure: socklen_t should be unsigned
Rémi Denis-Courmont
git at videolan.org
Sun Apr 14 09:17:54 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 09:47:40 2019 +0300| [d3a2ebf1a5c04667ab416371d8b7b40251a50aa1] | committer: Rémi Denis-Courmont
configure: socklen_t should be unsigned
Originally, POSIX made it unsigned. This was relaxed in newer releases,
but unsigned makes more sense anyway since it expressses a size.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3a2ebf1a5c04667ab416371d8b7b40251a50aa1
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 845f0ab283..85f2916f05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -748,7 +748,7 @@ ac_cv_type_socklen_t,
ac_cv_type_socklen_t=yes,
ac_cv_type_socklen_t=no)])
AS_IF([test "$ac_cv_type_socklen_t" = no],
- [AC_DEFINE(socklen_t, int)])
+ [AC_DEFINE(socklen_t, unsigned int)])
dnl Check for struct sockaddr_storage
AH_TEMPLATE(sockaddr_storage, [Define to `sockaddr' if <sys/socket.h> does not define.]) dnl ` (fix VIM syntax highlight
More information about the vlc-commits
mailing list