Changeset 15382


Ignore:
Timestamp:
2013-02-28T07:39:19+01:00 (11 years ago)
Author:
sjoelund.se
Message:

Fix OSX compilation for real

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SimulationRuntime/c/meta/meta_modelica_segv.c

    r15381 r15382  
    112112   * On Linux we get the bottom, so we don't need the size... YMMV
    113113   */
     114  pthread_t self = pthread_self();
    114115#if !defined(__APPLE_CC__)
    115116  struct rlimit rl;
     
    117118  pthread_attr_t sattr;
    118119  pthread_attr_init(&sattr);
    119   pthread_t thread = pthread_self();
    120   pthread_getattr_np(thread, &sattr);
     120  pthread_getattr_np(self, &sattr);
    121121  /* assert(0==getrlimit(RLIMIT_STACK,&rl));
    122122  stackSize = rl.rlim_cur; */
Note: See TracChangeset for help on using the changeset viewer.