Skip to content

Commit

Permalink
On OS X only look for IOR in /tmp folder
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4513 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
ericmeyers committed Nov 14, 2009
1 parent 8eca17d commit d0a117d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/runtime/corbaimpl.cpp
Expand Up @@ -370,9 +370,11 @@ RML_BEGIN_LABEL(Corba__initialize)
/* get temp dir */
char tmpDir[1024];
strcpy(tmpDir, "/tmp");
#ifndef __APPLE_CC__
if (getenv("TMPDIR") != 0) {
strcpy(tmpDir, getenv("TMPDIR"));
}
#endif

/* get the user name */
char *user = getenv("USER");
Expand Down

0 comments on commit d0a117d

Please sign in to comment.