Skip to content

Commit

Permalink
examples/client/sshtunnel: include headers req'd by some OS's
Browse files Browse the repository at this point in the history
...namely FreeBSD where accept requires <sys/types.h> and
<sys/socket.h> and close requires <unistd.h>.

Closes #548
  • Loading branch information
bk138 committed Jan 22, 2023
1 parent 0226364 commit 6408d56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/client/sshtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
#include <netdb.h>
#include <signal.h>
#include <errno.h>
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef LIBVNCSERVER_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef LIBVNCSERVER_HAVE_UNISTD_H
#include <unistd.h>
#endif

/* The one global bool that's global so we can set it via
a signal handler... */
Expand Down

0 comments on commit 6408d56

Please sign in to comment.