summaryrefslogtreecommitdiff
path: root/src/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.h')
-rw-r--r--src/udp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udp.h b/src/udp.h
index 4873483..7bddf15 100644
--- a/src/udp.h
+++ b/src/udp.h
@@ -38,7 +38,13 @@
#include <sys/types.h>
#include <sys/socket.h>
+#ifdef NO_UDPV6
+#include <netinet/in.h>
+typedef struct sockaddr_in udp_endpoint_t;
+#else
typedef struct sockaddr_storage udp_endpoint_t;
+#endif
+
struct udp_socket_struct {
int fd_;
udp_endpoint_t local_end_;