VirtualBox

Changeset 49714 in vbox for trunk/src


Ignore:
Timestamp:
Nov 29, 2013 5:39:47 AM (11 years ago)
Author:
vboxsync
Message:

Try to fix in6_pktinfo kludge. Apparently it was hidden under
USE_GNU in glibc 2.8, so check glibc version too. This should
hopefully fix build on RHEL5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxping.c

    r49709 r49714  
    4646#endif
    4747
    48 #if defined(RT_OS_LINUX) && !defined(__USE_GNU)
    49 /* XXX: https://sourceware.org/bugzilla/show_bug.cgi?id=6775 */
     48#if defined(RT_OS_LINUX) && !defined(__USE_GNU) \
     49    && __GLIBC_PREREQ(2, 8)
     50/*
     51 * XXX: This is gross.  in6_pktinfo is now hidden behind _GNU_SOURCE
     52 * https://sourceware.org/bugzilla/show_bug.cgi?id=6775
     53 *
     54 * But in older glibc versions, e.g. RHEL5, it is not!  I don't want
     55 * to deal with _GNU_SOURCE now, so as a kludge check for glibc
     56 * version.  It seems the __USE_GNU guard was introduced in 2.8.
     57 */
    5058struct in6_pktinfo {
    5159    struct in6_addr ipi6_addr;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette