Re: kern.osreldate and EAI_NODATA deprecation

From: Mark Huizer (freebsd+current_at_dohd.org)
Date: 12/31/03

  • Next message: Max Laier: "Re: kern.osreldate and EAI_NODATA deprecation"
    Date: Wed, 31 Dec 2003 14:26:51 +0100
    To: current@freebsd.org
    
    

    > __FreeBSD_version is defined in sys/sys/param.h. The closest for your case is:
    > 501112 from October 16th.
    > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h
    >
    > I'd rather suggest using an unconditional patch which introduces #ifdef
    > EAI_NODATA where required. That is future save (as the comment notes that
    > EAI_NODATA will go forever on Apr 23th).
    Well, that's tougher, since EAI_NODATA is defined (it's defined to be
    EAI_NODATA).
    Hmm...
    would this work? I'm not too 100% secure about preprocessing stuff.
    If this should work, I could try to get it included in the normal kaffe
    tree.

    #if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
    ...
    #endif

    Perhaps I should put a defined(__FREEBSD__) somewhere in there as well.

    #if !defined(__FREEBSD__) || (defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME)

    Something like that?

    Mark

    -- 
    Nice testing in little China...
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Max Laier: "Re: kern.osreldate and EAI_NODATA deprecation"

    Relevant Pages