VirtualBox

Changeset 1093 in kBuild


Ignore:
Timestamp:
Sep 9, 2007 12:21:19 AM (17 years ago)
Author:
bird
Message:

Fixed some OS/2 issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kObjCache/kObjCache.c

    r1089 r1093  
    5151# ifdef __OS2__
    5252#  include <unistd.h>
     53#  include <sys/wait.h>
    5354# endif
    5455# if defined(_MSC_VER)
    5556#  include <direct.h>
    5657   typedef intptr_t pid_t;
     58# endif
     59# ifndef _P_WAIT
     60#  define _P_WAIT   P_WAIT
     61# endif
     62# ifndef _P_NOWAIT
     63#  define _P_NOWAIT P_NOWAIT
    5764# endif
    5865#else
     
    254261static char *AbsPath(const char *pszPath)
    255262{
     263/** @todo this isn't really working as it should... */
    256264    char szTmp[PATH_MAX];
    257 #if defined(__OS2__) || defined(__WIN__)
     265#if defined(__OS2__)
     266    if (    _fullpath(szTmp, *pszPath ? pszPath : ".", sizeof(szTmp))
     267        &&  !realpath(pszPath, szTmp))
     268        return xstrdup(pszPath);
     269#elif defined(__WIN__)
    258270    if (!_fullpath(szTmp, *pszPath ? pszPath : ".", sizeof(szTmp)))
    259271        return xstrdup(pszPath);
     
    275287{
    276288    const char *pszFilename = strchr(pszPath, '\0') - 1;
     289    if (pszFilename < pszPath)
     290        return pszPath;
    277291    while (     pszFilename > pszPath
    278292           &&   !IS_SLASH_DRV(pszFilename[-1]))
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