1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-23 00:45:39 +00:00

[headers] check stdalign.h

This commit is contained in:
Witold Filipczyk 2021-01-13 22:02:30 +01:00
parent 9254649aaf
commit bdc6e05410
3 changed files with 5 additions and 0 deletions

View File

@ -226,6 +226,7 @@ AC_CHECK_HEADERS(stdint.h inttypes.h)
AC_CHECK_HEADERS(locale.h pwd.h)
AC_CHECK_HEADERS(termios.h)
AC_CHECK_HEADERS(poll.h)
AC_CHECK_HEADERS(stdalign.h)
AC_CHECK_HEADERS(sys/un.h,
[CONFIG_INTERLINK=yes

View File

@ -208,6 +208,8 @@ conf_data.set10('HAVE_STDLIB_H', compiler.has_header('stdlib.h'))
conf_data.set10('HAVE_STRING_H', compiler.has_header('string.h'))
conf_data.set10('HAVE_ALLOCA_H', compiler.has_header('alloca.h'))
conf_data.set('HAVE_STDALIGN_H', compiler.has_header('stdalign.h'))
deps = []
if conf_data.get('CONFIG_GZIP')
zdeps = dependency('zlib')

View File

@ -3,7 +3,9 @@
#ifndef EL__OSDEP_GENERIC_H
#define EL__OSDEP_GENERIC_H
#ifdef HAVE_STDALIGN_H
#include <stdalign.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h> /* may contain PIPE_BUF definition on some systems */