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

configure: replace max_align_t (fixes #17387)

parent 5652f673
......@@ -650,6 +650,10 @@ dnl Check for struct timespec
AC_CHECK_TYPES([struct timespec],,,
[#include <time.h>])
dnl Check for max_align_t
AC_CHECK_TYPES([max_align_t],,,
[#include <stddef.h>])
dnl Checks for socket stuff
VLC_SAVE_FLAGS
SOCKET_LIBS=""
......
......@@ -107,6 +107,14 @@ extern "C" {
# define VLC_NOTHROW
#endif
/* stddef.h */
#ifndef HAVE_MAX_ALIGN_T
typedef struct {
long long ll;
long double ld;
} max_align_t;
#endif
/* stdio.h */
#ifndef HAVE_ASPRINTF
int asprintf (char **, const char *, ...);
......
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