From 8c7499bdfa85657ea6c2517ada0ef4a4db489beb Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Sat, 23 Sep 2000 01:36:53 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_4_1_1'. --- net/netatalk-devel/files/patch-ad | 48 --------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 net/netatalk-devel/files/patch-ad (limited to 'net/netatalk-devel/files/patch-ad') diff --git a/net/netatalk-devel/files/patch-ad b/net/netatalk-devel/files/patch-ad deleted file mode 100644 index b7b1bf86c691..000000000000 --- a/net/netatalk-devel/files/patch-ad +++ /dev/null @@ -1,48 +0,0 @@ -*** etc/atalkd/main.c.orig Tue Oct 22 00:45:03 1996 ---- etc/atalkd/main.c Wed Feb 25 02:39:21 1998 -*************** -*** 19,24 **** ---- 19,35 ---- - #include - #include - -+ #if __FreeBSD__ >= 2 -+ # include -+ # if __FreeBSD_version >= 300000 -+ # define __FreeBSD_CURRENT -+ # endif -+ #endif -+ -+ #ifdef __FreeBSD_CURRENT -+ #include -+ #endif -+ - #include - #include - #include -*************** -*** 1150,1158 **** ---- 1161,1183 ---- - } - } else { - /* configure multicast for this interface */ -+ #ifdef __FreeBSD_CURRENT -+ struct sockaddr_dl *sdl = (struct sockaddr_dl *)&sa; -+ bzero( sdl, sizeof( struct sockaddr )); -+ sdl->sdl_family = AF_LINK; -+ sdl->sdl_nlen = 0 /* strlen(iface->i_name)*/; -+ /*strncpy(sdl->sdl_data, iface->i_name, sdl->sdl_nlen);*/ -+ bcopy( ethermulti, LLADDR(sdl), sizeof( ethermulti )); -+ sdl->sdl_alen = sizeof( ethermulti ); -+ sdl->sdl_len = sizeof(*sdl); -+ /* (sdl->sdl_data + sdl->sdl_alen + sdl->sdl_nlen) -+ - (char *)sdl; */ -+ if ( ifconfig( iface->i_name, SIOCADDMULTI, sdl )) { -+ #else - bzero( &sa, sizeof( struct sockaddr )); - bcopy( ethermulti, sa.sa_data, sizeof( ethermulti )); - if ( ifconfig( iface->i_name, SIOCADDMULTI, &sa )) { -+ #endif - syslog( LOG_ERR, "addmulti: %m" ); - exit( 1 ); - } -- cgit v1.2.3