Changeset 36147

Show
Ignore:
Timestamp:
12/16/09 03:27:43 (4 years ago)
Author:
saturday06
Message:

adf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Synchronize.h

    r36146 r36147  
    7777        name << "/" PACKAGE_NAME PACKAGE_VERSION "-pid" << getpid(); 
    7878        psem = sem_open(name.str().c_str(), O_CREAT | O_EXCL, S_IRUSR | S_IWUSR | S_IXUSR, 0); 
    79         if (reinterpret_cast<intptr_t>(psem) == 
    80             reinterpret_cast<intptr_t>(-1)) { 
     79//        if (reinterpret_cast<intptr_t>(psem) == 
     80//            reinterpret_cast<intptr_t>(-1)) { 
     81        if ((int)psem == (int)-1) { 
    8182            halt << "sem_open() failed"; 
    8283        }