]> git.sesse.net Git - vlc/blobdiff - src/network/rootbind.c
win32: fix gnutls access
[vlc] / src / network / rootbind.c
index c52360271859ea80c6db392ed934838be7565d2b..0a540f6022ae37cf5e4db4954331ddaa3dc1f82d 100644 (file)
@@ -22,7 +22,9 @@
 # include <config.h>
 #endif
 
-#if !defined (WIN32) && !defined (SYS_BEOS)
+#define _XPG4_2 /* ancilliary data on Solaris */
+
+#if !defined (WIN32)
 # define ENABLE_ROOTWRAP 1
 #endif
 
@@ -56,6 +58,11 @@ int rootwrap_bind (int, int, int, const struct sockaddr *, size_t);
 # define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
 #endif
 
+#if defined(__OS2__) && !defined(ALIGN)
+/* CMSG_NXTHDR requires this */
+# define ALIGN(p) _ALIGN(p)
+#endif
+
 /**
  * Receive a file descriptor from another process
  */