lib/misc/un.h
changeset 0 6f7a81934006
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/misc/un.h	Wed Jan 16 22:39:43 2008 +0100
@@ -0,0 +1,13 @@
+#ifndef VMAILMGR__UN__H__
+#define VMAILMGR__UN__H__
+
+#include <sys/socket.h>
+#include <sys/un.h>
+
+#ifndef SUN_LEN
+/* Evaluate to actual length of the `sockaddr_un' structure.  */
+#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path)	      \
+		      + strlen ((ptr)->sun_path))
+#endif
+
+#endif