Date: Wed, 9 Oct 2002 15:41:17 +0400 (MSD) From: Maxim Maximov <mcsi@agava.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/43856: fix build of x11/wscan Message-ID: <200210091141.g99BfHZI092338@ultra.domain>
next in thread | raw e-mail | index | archive | help
>Number: 43856 >Category: ports >Synopsis: fix build of x11/wscan >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 09 04:40:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Maxim Maximov >Release: FreeBSD 4.7-RC i386 >Organization: >Environment: System: FreeBSD ultra.domain 4.7-RC FreeBSD 4.7-RC #9: Fri Oct 4 12:38:44 MSD 2002 mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA i386 >Description: this patch fixes build of x11/wscan port. there were two issues: 1. machine/if_wavelan_ieee.h was removed at Mon Jun 17 21:55:02 2002 UTC, so fix __FreeBSD_version as appropriate. 2. MAXWICACHE moved to if_wivar.h, which is not intended to include in userland apps. so, add a hack. however, better solution is to return MAXWICACHE define back into if_wavelan_ieee.h. the patch made to original distributive version of the file. >How-To-Repeat: >Fix: --- wibsd_wifi.c.orig Mon Dec 10 21:06:21 2001 +++ wibsd_wifi.c Wed Oct 9 15:29:13 2002 @@ -49,7 +49,14 @@ #include <net/ethernet.h> #define WICACHE +#define MAXWICACHE 10 + +#include <osreldate.h> +#if __FreeBSD_version >= 460101 +#include <dev/wi/if_wavelan_ieee.h> +#else #include <machine/if_wavelan_ieee.h> +#endif #include <stdio.h> #include <string.h> >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210091141.g99BfHZI092338>