fix stdlib inclusion on linux
[m6w6/ext-psi] / psi.d / time.psi
index 716e17610bd5b8613671417d488018c6c1ec8685..152eba36ff51f74e43f28d4dd120b4b326539f47 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef linux /* old, anyway */
+#ifdef __linux__ /* old, anyway */
 lib "rt";
 #endif
 
@@ -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));
 }