update readme
[m6w6/ext-psi] / psi.d / time.psi
index 716e17610bd5b8613671417d488018c6c1ec8685..f38023466f121af25f0af144b19e6e2a7702db46 100644 (file)
@@ -1,5 +1,5 @@
-#ifdef linux /* old, anyway */
-lib "rt";
+#ifdef __linux__ /* old, anyway */
+#pragma lib "rt"
 #endif
 
 #include <sys/time.h>
@@ -124,5 +124,5 @@ function psi\tzset() : void {
 }
 
 function psi\tzname() : array {
-       return tzname_get() as to_array(tzname_get, 2, to_string(*tzname_get));
+       return tzname_get() as to_array(*tzname_get, 2, to_string(*tzname_get));
 }