1
0
Fork 0

[headers] Check for sys/kd.h

This commit is contained in:
Witold Filipczyk 2022-11-21 16:51:40 +01:00
parent b9910df99d
commit 3d208c3135
4 changed files with 11 additions and 0 deletions

View File

@ -728,6 +728,9 @@
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#mesondefine HAVE_SYS_IOCTL_H
/* Define to 1 if you have the <sys/kd.h> header file */
#mesondefine HAVE_SYS_KD_H
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
#mesondefine HAVE_SYS_NDIR_H

View File

@ -217,6 +217,7 @@ AC_CHECK_HEADERS(ifaddrs.h)
AC_CHECK_HEADERS(sys/cygwin.h io.h)
AC_CHECK_HEADERS(sys/fmutex.h)
AC_CHECK_HEADERS(sys/ioctl.h sys/sockio.h)
AC_CHECK_HEADERS(sys/kd.h)
AC_CHECK_HEADERS(sys/resource.h)
AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(sys/socket.h)

View File

@ -227,6 +227,10 @@ if compiler.has_header('sys/ioctl.h')
conf_data.set('HAVE_SYS_IOCTL_H', 1)
endif
if compiler.has_header('sys/kd.h')
conf_data.set('HAVE_SYS_KD_H', 1)
endif
if compiler.has_header('sys/sockio.h')
conf_data.set('HAVE_SYS_SOCKIO_H', 1)
endif

View File

@ -30,7 +30,10 @@
#endif
#include <sys/ioctl.h>
#ifdef HAVE_SYS_KD_H
#include <sys/kd.h>
#endif
#include "elinks.h"