Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Be more self-sufficient with header inclusions
Don't rely on things that are implicitly included through OpenSSL headers.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed May 29, 2012
1 parent 3362213 commit 412cab3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cstp.c
Expand Up @@ -29,6 +29,9 @@
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>

#include <openssl/ssl.h>
#include <openssl/err.h>
Expand Down
1 change: 1 addition & 0 deletions library.c
Expand Up @@ -24,6 +24,7 @@

#include <string.h>
#include <errno.h>
#include <stdlib.h>

#include "openconnect-internal.h"

Expand Down
1 change: 1 addition & 0 deletions ssl.c
Expand Up @@ -32,6 +32,7 @@
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#if defined(__linux__)
#include <sys/vfs.h>
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__APPLE__)
Expand Down
2 changes: 2 additions & 0 deletions tun.c
Expand Up @@ -38,6 +38,8 @@
#include <arpa/inet.h>
#include <errno.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#if defined(__sun__)
#include <stropts.h>
#include <sys/sockio.h>
Expand Down

0 comments on commit 412cab3

Please sign in to comment.