freebsd-ports/editors/openoffice-1.1/files/patch-sal+osl+unx+socket.c
Martin Blapp a31c45a0b4 Upgrade to build 641d. More work is necessary to make the build compile.
There are still at least two different gcc bugs in our compiler, one
issue has already been found by Alexander Kabaev <ak03@gte.com>. He's
working on fixing the other.
2002-04-02 23:48:28 +00:00

20 lines
674 B
C

--- ../sal/osl/unx/socket.c.orig Sun Mar 17 12:46:37 2002
+++ ../sal/osl/unx/socket.c Wed Apr 3 01:01:14 2002
@@ -82,7 +82,7 @@
#undef HAVE_POLL_H
#endif
-#if defined(LINUX) || defined (IRIX) || defined(NETBSD)
+#if defined(LINUX) || defined (IRIX) || defined(NETBSD) || defined(FREEBSD)
#include <sys/poll.h>
#define HAVE_POLL_H
#endif /* HAVE_POLL_H */
@@ -1965,7 +1965,7 @@
/*****************************************************************************/
oslSocketAddr SAL_CALL osl_getLocalAddrOfSocket(oslSocket pSocket)
{
-#ifdef LINUX
+#ifdef LINUX || defined(FREEBSD)
socklen_t AddrLen;
#else
/* mfe: Solaris 'cc +w' means Addrlen should be signed! */