VirtualBox

Changeset 1578 in kBuild for trunk/src/kmk/kmkbuiltin/rm.c


Ignore:
Timestamp:
Apr 25, 2008 12:47:29 AM (17 years ago)
Author:
bird
Message:

Compile fix and workaround for broken _getdcwd (see libc ticket #194).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/rm.c

    r1567 r1578  
    6464# include "mscfakes.h"
    6565#endif
     66#if defined(__OS2__) || defined(_MSC_VER)
     67# include <direct.h>
     68# include <limits.h>
     69#endif
    6670#include "kmkbuiltin.h"
    6771
     
    371375                         * Relative path, must count cwd depth first.
    372376                         */
    373                         char *cwd = _getdcwd(drive_letter, NULL, 32);
     377#ifdef __OS2__ /** @todo remove when ticket 194 has been fixed */
     378                        char *cwd = _getdcwd(drive_letter, NULL, PATH_MAX);
     379#else
     380                        char *cwd = _getdcwd(drive_letter, NULL, 0);
     381#endif
    374382                        char *tmp = cwd;
    375383                        if (!tmp) {
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