1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-04 08:40:21 +02:00

Conditionally include netinet/tcp.h

It is not present on MinGW.

* configure.ac: (AC_CHECK_HEADERS) add netinet/tcp.h
* socket.c: [HAVE_NETINET_TCP_H] conditionally include netinet/tcp.h
This commit is contained in:
Michael Gran 2018-04-10 12:14:08 -07:00
parent 01f97cfc0a
commit 9bf1ae81e1
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1996-1998, 2000-2007, 2009, 2011-2015
/* Copyright (C) 1996-1998, 2000-2007, 2009, 2011-2015, 2018
* Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
@ -40,7 +40,9 @@
#include <sys/un.h>
#endif
#include <netinet/in.h>
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
#include <netdb.h>
#include <arpa/inet.h>