[vlc-commits] [Git][videolan/vlc][master] vlc_fixups: fix ssize_t not being defined
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Wed Jul 27 08:19:05 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
94386bab by Alexandre Janniaux at 2022-07-27T07:55:53+00:00
vlc_fixups: fix ssize_t not being defined
When compiling and not having writev/readv, the following error happens:
make[2]: Entering directory '/home/janniaux/Projects/videolabs/vlc/build-tsan/compat'
CC strlcpy.lo
CC strnstr.lo
In file included from ../config.h:952,
from ../../compat/strnstr.c:22:
../../include/vlc_fixups.h:232:1: error: unknown type name âssize_tâ; did you mean âsize_tâ?
232 | ssize_t readv(int, const struct iovec *, int);
| ^~~~~~~
| size_t
In file included from ../config.h:952,
from ../../compat/strlcpy.c:22:
../../include/vlc_fixups.h:232:1: error: unknown type name âssize_tâ; did you mean âsize_tâ?
232 | ssize_t readv(int, const struct iovec *, int);
| ^~~~~~~
| size_t
../../include/vlc_fixups.h:237:1: error: unknown type name âssize_tâ; did you mean âsize_tâ?
237 | ssize_t writev(int, const struct iovec *, int);
| ^~~~~~~
| size_t
../../include/vlc_fixups.h:237:1: error: unknown type name âssize_tâ; did you mean âsize_tâ?
237 | ssize_t writev(int, const struct iovec *, int);
| ^~~~~~~
| size_t
make[2]: *** [Makefile:1531: strnstr.lo] Error 1
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -105,7 +105,9 @@ typedef struct
#if !defined (HAVE_GETDELIM) || \
!defined (HAVE_GETPID) || \
- !defined (HAVE_SWAB)
+ !defined (HAVE_SWAB) || \
+ !defined (HAVE_WRITEV) || \
+ !defined (HAVE_READV)
# include <sys/types.h> /* ssize_t, pid_t */
#endif
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/94386bab7533e8830281d5d8503e69fc44b96e8b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/94386bab7533e8830281d5d8503e69fc44b96e8b
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list