# 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
# 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
*/