| author | "Tomas Zeman <tzeman@volny.cz>" |
| Wed, 16 Jan 2008 22:39:43 +0100 | |
| changeset 0 | 6f7a81934006 |
| permissions | -rw-r--r-- |
| 0 | 1 |
#ifndef VMAILMGR__UN__H__ |
2 |
#define VMAILMGR__UN__H__ |
|
3 |
||
4 |
#include <sys/socket.h> |
|
5 |
#include <sys/un.h> |
|
6 |
||
7 |
#ifndef SUN_LEN |
|
8 |
/* Evaluate to actual length of the `sockaddr_un' structure. */ |
|
9 |
#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ |
|
10 |
+ strlen ((ptr)->sun_path)) |
|
11 |
#endif |
|
12 |
||
13 |
#endif |