summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-3-devel/files/patch-sal::osl::unx::pipe.c
blob: 6802487470a2407767e9f187823cd7102d4226c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ../sal/osl/unx/pipe.c.orig	Tue May 29 07:38:32 2001
+++ ../sal/osl/unx/pipe.c
@@ -264,7 +264,11 @@
     
 	addr.sun_family = AF_UNIX;
 	strcpy(addr.sun_path, name);
+#if defined(FREEBSD)
+        len = SUN_LEN(&addr);
+#else
 	len = sizeof(addr.sun_family) + strlen(addr.sun_path);
+#endif
 
 	if ( Options & osl_Pipe_CREATE )
 	{