git.fiddlerwoaroof.com
Browse code

add static defs into create funnctions for pwd and unistd

vagrant authored on 05/05/2017 03:21:58
Showing 2 changed files
... ...
@@ -25,11 +25,11 @@ public:
25 25
     }
26 26
 
27 27
 };
28
-static pwd system_pwd (pwd::delegate (new impl));
29 28
 }
30 29
 
31 30
 pwd pwd::create()
32 31
 {
32
+    static pwd system_pwd (pwd::delegate (new impl));
33 33
     return system_pwd;
34 34
 }
35 35
 
... ...
@@ -26,11 +26,11 @@ public:
26 26
         return ::getlogin();
27 27
     }
28 28
 };
29
-static unistd sys_unistd (unistd::delegate (new impl));
30 29
 }
31 30
 
32 31
 unistd unistd::create()
33 32
 {
33
+    static unistd sys_unistd (unistd::delegate (new impl));
34 34
     return sys_unistd;
35 35
 }
36 36