aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/replacements.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index ceb2258..bdd3ae7 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -139,6 +139,15 @@ static inline unsigned usleep(unsigned int usecs)
#include <windows.h>
#include <time.h>
+#include <helper/types.h>
+
+/* Windows does not declare sockaddr_un */
+#define UNIX_PATH_LEN 108
+struct sockaddr_un {
+ uint16_t sun_family;
+ char sun_path[UNIX_PATH_LEN];
+};
+
/* win32 systems do not support ETIMEDOUT */
#ifndef ETIMEDOUT