diff -r 000000000000 -r 6f7a81934006 lib/misc/un.h --- /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 +#include + +#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