struct instead to use.
#include "inet_ntop.h"
#include "select.h"
#include "parsedate.h" /* for the week day and month names */
-#include "sockaddr.h" /* required for sockaddr_storage */
+#include "sockaddr.h" /* required for Curl_sockaddr_storage */
#if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
#include "inet_ntoa_r.h"
/******************************************************************
* IPv6-specific section
*/
- struct sockaddr_storage ss;
+ struct Curl_sockaddr_storage ss;
struct addrinfo *res, *ai;
socklen_t sslen;
char hbuf[NI_MAXHOST];
#include "setup.h"
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
-struct sockaddr_storage
- {
- char buffer[256]; /* this should be big enough to fit a lot */
- };
+struct Curl_sockaddr_storage {
+ struct sockaddr_storage buffer;
+}
+#else
+struct Curl_sockaddr_storage {
+ char buffer[256]; /* this should be big enough to fit a lot */
+};
#endif
-
#endif /* __SOCKADDR_H */
#include "progress.h"
#include "connect.h"
#include "strerror.h"
-#include "sockaddr.h" /* required for sockaddr_storage */
+#include "sockaddr.h" /* required for Curl_sockaddr_storage */
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
time_t start_time;
time_t max_time;
unsigned short block;
- struct sockaddr_storage local_addr;
+ struct Curl_sockaddr_storage local_addr;
socklen_t local_addrlen;
- struct sockaddr_storage remote_addr;
+ struct Curl_sockaddr_storage remote_addr;
socklen_t remote_addrlen;
int rbytes;
int sbytes;
tftp_event_t event;
CURLcode code;
int rc;
- struct sockaddr_storage fromaddr;
+ struct Curl_sockaddr_storage fromaddr;
socklen_t fromlen;
int check_time = 0;