aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/socket_compat.h.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/core/socket_compat.h.tpl')
-rw-r--r--include/osmocom/core/socket_compat.h.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmocom/core/socket_compat.h.tpl b/include/osmocom/core/socket_compat.h.tpl
new file mode 100644
index 00000000..43bee9ee
--- /dev/null
+++ b/include/osmocom/core/socket_compat.h.tpl
@@ -0,0 +1,10 @@
+#define HAVE_STRUCT_SOCKADDR_STORAGE XX
+
+#if HAVE_STRUCT_SOCKADDR_STORAGE
+ #include <sys/socket.h>
+#else
+struct sockaddr_storage {
+ unsigned short ss_family;
+ char __data[128 - sizeof(unsigned short)];
+};
+#endif