]> granicus.if.org Git - curl/commitdiff
Added some include files in a couple of example programs
authorDan Fandrich <dan@coneharvesters.com>
Wed, 7 Dec 2011 03:54:48 +0000 (19:54 -0800)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 7 Dec 2011 03:54:48 +0000 (19:54 -0800)
This improves portability of the examples.  This patch was
submitted to the OpenBSD ports collection by naddy.

docs/examples/anyauthput.c
docs/examples/externalsocket.c

index bab36c57b2bbfab2e732ff8463fbe9772f1f7179..2997a1e98ca9626f8be44754876c40ff03d34e17 100644 (file)
@@ -27,6 +27,7 @@
 #  ifdef __VMS
      typedef int intptr_t;
 #  endif
+#  include <stdint.h>
 #  include <unistd.h>
 #endif
 #include <sys/types.h>
index 5951c078eee51dddf1154596e5af92cd651c013f..c4abafd8750fe0c99fb7aaa2c8a2bce38dc05512 100644 (file)
@@ -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