VirtualBox

Changeset 9358 in vbox for trunk/src


Ignore:
Timestamp:
Jun 3, 2008 3:59:24 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31576
Message:

More fun.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/dir.cpp

    r9357 r9358  
    574574#ifndef RT_OS_WINDOWS
    575575    long cbNameMax = pathconf(szRealPath, _PC_NAME_MAX);
     576# ifdef NAME_MAX
    576577    if (cbNameMax < NAME_MAX)           /* This is plain paranoia, but it doesn't hurt. */
    577578        cbNameMax = NAME_MAX;
     579# endif
     580# ifdef _XOPEN_NAME_MAX
     581    if (cbNameMax < _XOPEN_NAME_MAX)    /* Ditto. */
     582        cbNameMax = _XOPEN_NAME_MAX;
     583# endif
    578584    size_t cbDir = RT_OFFSETOF(RTDIR, Data.d_name[cbNameMax + 1]);
    579585    if (cbDir < sizeof(RTDIR))          /* Ditto. */
Note: See TracChangeset for help on using the changeset viewer.

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