author | Florian Forster <octo@crystal.wlan.home.verplant.org> | |
Wed, 6 Dec 2006 08:59:20 +0000 (09:59 +0100) | ||
committer | Florian Forster <octo@crystal.wlan.home.verplant.org> | |
Wed, 6 Dec 2006 08:59:20 +0000 (09:59 +0100) |
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 55e0ed5e6c0bd14646f1fd66a018b84db471870f..9fd05ba0fcf15ad4aa9a6de2d8a8cd0319aa1d20 100644 (file)
--- a/src/email.c
+++ b/src/email.c
# include <sys/un.h>
#endif /* HAVE_LINUX_UN_H | HAVE_SYS_UN_H */
+/* some systems (e.g. Darwin) seem to not define UNIX_PATH_MAX at all */
+#ifndef UNIX_PATH_MAX
+# define UNIX_PATH_MAX sizeof (((struct sockaddr_un *)0)->sun_path)
+#endif /* UNIX_PATH_MAX */
+
#if HAVE_GRP_H
# include <grp.h>
#endif /* HAVE_GRP_H */