Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dtls: Fix WIN32 build
mingw32 does not have <netinet/in.h> or <sys/socket.h> headers.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
cernekee authored and David Woodhouse committed May 6, 2016
1 parent f114150 commit 489cb6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dtls.c
Expand Up @@ -18,15 +18,17 @@
#include <config.h>

#include <errno.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#ifndef _WIN32
#include <netinet/in.h>
#include <sys/socket.h>
#endif

#include "openconnect-internal.h"

Expand Down

0 comments on commit 489cb6c

Please sign in to comment.