Define _HAVE_SA_LEN for 4.4 BSD

Mark Kettenis kettenis@wins.uva.nl
Sat Feb 10 04:49:00 GMT 2001


For 4.4 BSD we obviously need to define _HAVE_SA_LEN.  This fixes a
compilation problem for the Hurd since we use the 4.4 BSD `struct
sockaddr_*'.

Mark


2001-02-10  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (_HAVE_SA_LEN): Define.


Index: sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h,v
retrieving revision 1.3
diff -u -p -r1.3 sockaddr.h
--- sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h 2001/01/31 06:14:55 1.3
+++ sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h 2001/02/10 12:45:46
@@ -38,4 +38,6 @@ typedef unsigned char sa_family_t;
 
 #define __SOCKADDR_COMMON_SIZE	(2 * sizeof (unsigned char))
 
+#define _HAVE_SA_LEN	1	/* We have the sa_len field.  */
+
 #endif	/* bits/sockaddr.h */



More information about the Libc-hacker mailing list