2003-08-01  Adam Fedor  <fedor@gnu.org>

	* Source/NSMessagePort.m: Define AF_LOCAL, etc if not available.
	* Source/NSMessagePortNameServer.m: Idem.

Index: Source/NSMessagePort.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/NSMessagePort.m,v
retrieving revision 1.2
diff -u -r1.2 NSMessagePort.m
--- Source/NSMessagePort.m	31 Jul 2003 23:49:31 -0000	1.2
+++ Source/NSMessagePort.m	1 Aug 2003 16:08:59 -0000
@@ -100,6 +100,15 @@
 #define close closesocket
 #endif
 
+/* Older systems (Solaris) compatibility */
+#ifndef AF_LOCAL
+#define AF_LOCAL AF_UNIX
+#define PF_LOCAL PF_UNIX
+#endif
+#ifndef SUN_LEN
+#define SUN_LEN(su) \
+	(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
+#endif
 
 static	BOOL	multi_threaded = NO;
 
Index: Source/NSMessagePortNameServer.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/NSMessagePortNameServer.m,v
retrieving revision 1.2
diff -u -r1.2 NSMessagePortNameServer.m
--- Source/NSMessagePortNameServer.m	22 Jul 2003 08:52:37 -0000	1.2
+++ Source/NSMessagePortNameServer.m	1 Aug 2003 16:08:59 -0000
@@ -15,6 +15,16 @@
 #include <string.h>
 #include <sys/un.h>
 
+/* Older systems (Solaris) compatibility */
+#ifndef AF_LOCAL
+#define AF_LOCAL AF_UNIX
+#define PF_LOCAL PF_UNIX
+#endif
+#ifndef SUN_LEN
+#define SUN_LEN(su) \
+	(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
+#endif
+
 
 static NSRecursiveLock *serverLock = nil;
 static NSMessagePortNameServer *defaultServer = nil;
