aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/externalsocket.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-12-06 19:54:48 -0800
committerDan Fandrich <dan@coneharvesters.com>2011-12-06 19:54:48 -0800
commit46724b87b769ff50e1e6b90d2aabc50b8ba7c1a9 (patch)
tree1be2fe524fe31e6d5b44127bf611c291195537cd /docs/examples/externalsocket.c
parent82a4d26e7f43f2088df560772e779df6c1caeae2 (diff)
Added some include files in a couple of example programs
This improves portability of the examples. This patch was submitted to the OpenBSD ports collection by naddy.
Diffstat (limited to 'docs/examples/externalsocket.c')
-rw-r--r--docs/examples/externalsocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/examples/externalsocket.c b/docs/examples/externalsocket.c
index 5951c078e..c4abafd87 100644
--- a/docs/examples/externalsocket.c
+++ b/docs/examples/externalsocket.c
@@ -36,6 +36,7 @@
#else
#include <sys/types.h> /* socket types */
#include <sys/socket.h> /* socket definitions */
+#include <netinet/in.h>
#include <arpa/inet.h> /* inet (3) funtions */
#include <unistd.h> /* misc. UNIX functions */
#endif