Commit 46724b87 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

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.
parent 82a4d26e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,7 @@
#  ifdef __VMS
#  ifdef __VMS
     typedef int intptr_t;
     typedef int intptr_t;
#  endif
#  endif
#  include <stdint.h>
#  include <unistd.h>
#  include <unistd.h>
#endif
#endif
#include <sys/types.h>
#include <sys/types.h>
+1 −0
Original line number Original line Diff line number Diff line
@@ -36,6 +36,7 @@
#else
#else
#include <sys/types.h>        /*  socket types              */
#include <sys/types.h>        /*  socket types              */
#include <sys/socket.h>       /*  socket definitions        */
#include <sys/socket.h>       /*  socket definitions        */
#include <netinet/in.h>
#include <arpa/inet.h>        /*  inet (3) funtions         */
#include <arpa/inet.h>        /*  inet (3) funtions         */
#include <unistd.h>           /*  misc. UNIX functions      */
#include <unistd.h>           /*  misc. UNIX functions      */
#endif
#endif