IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27592


Ignore:
Timestamp:
Apr 3, 2010, 2:02:46 PM (16 years ago)
Author:
bills
Message:

fix or workaround compile problems on MacOS

Location:
trunk/Ohana/src/opihi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/gprint.c

    r27435 r27592  
    351351
    352352  // there are two strerror_r implementations; choose the right one:
    353 #if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE)
     353#if (((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || __APPLE__)
    354354  strerror_r (myError, errorBuf, MAX_ERROR_LENGTH);
    355355  errorMsg = errorBuf;
  • trunk/Ohana/src/opihi/pcontrol/StartHost.c

    r27435 r27592  
    1414  if (VarConfig ("SHELL", "%s", shell)     == NULL) strcpy (shell, "pclient");
    1515
    16   if (VerboseMode()) gprint (GP_ERR, "starting host within thread %lld\n", (long long) pthread_self());
    17 
     16  if (VerboseMode()) gprint (GP_ERR, "starting host within thread %lld\n", (int64_t) pthread_self());
    1817  pid = rconnect (command, host[0].hostname, shell, stdio);
    1918  if (!pid) {     
  • trunk/Ohana/src/opihi/pcontrol/StopHosts.c

    r27435 r27592  
    121121  int i, result, waitstatus;
    122122
     123#ifndef __APPLE__
    123124  if (VerboseMode()) gprint (GP_ERR, "harvesting within thread %lld\n", (long long) pthread_self());
     125#endif
    124126  if (VerboseMode()) gprint (GP_ERR, "child process %d is down, wait for exit status\n", pid);
    125127 
Note: See TracChangeset for help on using the changeset viewer.