Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2002 00:29:56 -0800 (PST)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/usb ufm.c
Message-ID:  <200203100829.g2A8Tuj92742@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
luigi       2002/03/10 00:29:56 PST

  Modified files:
    sys/dev/usb          ufm.c 
  Log:
  Fix one genuine bug and a potential one:
  
    -#if defined(__FreeBSD__) && __FreeBSD_version__ >= 500023
    +#if defined(__FreeBSD__) && __FreeBSD_version >= 500023
  
  is a genuine bug -- __FreeBSD_version__ does not exist.
  The other one:
  
    -#if (__FreeBSD__ < 5)
    +#if (__FreeBSD_version < 500000)
  
  pops out when you cross-compile the code:
  
    __FreeBSD__                   is a compiler predefine,
    __FreeBSD_version             is defined in <sys/param.h> .
  
  Given that in this case (and all others in sys/dev/usb and sys/i4b)
  the goal is to adapt to a different kernel interface, and not to
  a compiler feature, I believe the correct form is the second one
  (in the best case the two are synonyms so the change does not break
  anything anyways).
  
  Revision  Changes    Path
  1.2       +2 -2      src/sys/dev/usb/ufm.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203100829.g2A8Tuj92742>