NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/43063: Please delete __NetBSD_Prereq__() from <sys/param.h>



The following reply was made to PR kern/43063; it has been noted by GNATS.

From: Roy Marples <roy%marples.name@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: Re: kern/43063: Please delete =?UTF-8?Q?=5F=5FNetBSD=5FPrereq=5F?=  
=?UTF-8?Q?=5F=28=29=20from=20=3Csys/param=2Eh=3E?=
Date: Sun, 13 Jul 2014 08:34:55 +0100

 Hi
 
 dhcpcd currently uses this macro like so
 
 /*
   * BSD kernels don't inform userland of DAD results.
   * See the discussion here:
   *    http://mail-index.netbsd.org/tech-net/2013/03/15/msg004019.html
   */
 #ifndef __linux__
 /* We guard here to avoid breaking a compile on linux ppc-64 headers */
 #  include <sys/param.h>
 #endif
 #ifdef BSD
 #  define IPV6_POLLADDRFLAG
 #endif
 
 /* This was fixed in NetBSD */
 #ifdef __NetBSD_Prereq__
 #  if __NetBSD_Prereq__(6, 99, 20)
 #    undef IPV6_POLLADDRFLAG
 #  endif
 #endif
 
 Should this be now be moved to a ./configure test based on uname -m?
 ./configure is NOT run when dhcpcd is imported into external so that may
 complicate future pullups if changed.
 
 Roy
 


Home | Main Index | Thread Index | Old Index