mirror of
https://github.com/curl/curl.git
synced 2026-07-16 07:57:15 +03:00
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.
This commit is contained in:
parent
82a4d26e7f
commit
46724b87b7
2 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
# ifdef __VMS
|
||||
typedef int intptr_t;
|
||||
# endif
|
||||
# include <stdint.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue