Re: [PATCH spice-gtk] build: Add some missing check for headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, May 01, 2019 at 08:46:35AM +0100, Frediano Ziglio wrote:
> Headers macros (HAVE_*_H) are guarding some include in the code.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  configure.ac |  2 +-
>  meson.build  | 10 ++++++++--
>  2 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 0666e2a8..61591691 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -71,7 +71,7 @@ esac
>  AC_MSG_RESULT([$os_mac])
>  AM_CONDITIONAL([OS_MAC],[test "$os_mac" = "yes"])
>  
> -AC_CHECK_HEADERS([sys/socket.h netinet/in.h arpa/inet.h])
> +AC_CHECK_HEADERS([sys/socket.h sys/types.h netinet/in.h arpa/inet.h])
>  AC_CHECK_HEADERS([termios.h])
>  AC_CHECK_HEADERS([epoxy/egl.h],
>                   [have_egl=yes],
> diff --git a/meson.build b/meson.build
> index e0fba930..8c6288f3 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -48,8 +48,14 @@ keymapcsv = files('subprojects/keycodemapdb/data/keymaps.csv')
>  #
>  # check for system headers
>  #
> -headers = ['termios.h',
> -           'X11/XKBlib.h']
> +headers = [
> +  'termios.h',
> +  'X11/XKBlib.h',
> +  'sys/socket.h',
> +  'sys/types.h',
> +  'netinet/in.h',
> +  'arpa/inet.h',
> +]

Acked-by: Victor Toso <victortoso@xxxxxxxxxx>

>  
>  foreach header : headers
>    if compiler.has_header(header)
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]