[vlc-commits] Define ALIGN for OS/2.
KO Myung-Hun
git at videolan.org
Tue Apr 5 13:20:53 CEST 2011
vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Mon Apr 4 09:33:20 2011 +0200| [396053f83019e1b0cb7a0b2313b4a1658332eb44] | committer: Rémi Duraffort
Define ALIGN for OS/2.
CMSG_NXTHDR requires this.
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=396053f83019e1b0cb7a0b2313b4a1658332eb44
---
src/network/rootbind.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/network/rootbind.c b/src/network/rootbind.c
index 9875547..0a540f6 100644
--- a/src/network/rootbind.c
+++ b/src/network/rootbind.c
@@ -58,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
*/
More information about the vlc-commits
mailing list