include netinet etc #ifndef HAVE_WINSOCK2_H

This commit is contained in:
Jim Meyering 2008-10-28 17:47:45 +00:00
parent 78d4d969e2
commit 2bbf76ebeb
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Oct 28 13:29:14 +0100 2008 Jim Meyering <meyering@redhat.com>
include netinet etc #ifndef HAVE_WINSOCK2_H
Tue Oct 28 13:29:13 +0100 2008 Jim Meyering <meyering@redhat.com>
* src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile.

View File

@ -36,6 +36,13 @@
#include <sys/stat.h>
#include <fcntl.h>
#ifndef HAVE_WINSOCK2_H /* Unix & Cygwin. */
# include <sys/un.h>
# include <net/if.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif