]> git.sesse.net Git - vlc/blobdiff - bin/rootwrap.c
Win32: generate stacktrace on unhandled exception
[vlc] / bin / rootwrap.c
index f2c851a3544347ea5cdc522cf29a62f3f68c49e8..cff9476b5d8770b0ef197ce83be47002b55e8cd2 100644 (file)
 #ifndef AF_LOCAL
 # define AF_LOCAL AF_UNIX
 #endif
+/* Required yet non-standard cmsg functions */
+#ifndef CMSG_ALIGN
+# define CMSG_ALIGN(len) (((len) + sizeof(intptr_t)-1) & ~(sizeof(intptr_t)-1))
+#endif
+#ifndef CMSG_SPACE
+# define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
+#endif
+#ifndef CMSG_LEN
+# define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+#endif
 
 static inline int is_allowed_port (uint16_t port)
 {