fix stdlib inclusion on linux
[m6w6/ext-psi] / psi.d / time.psi
index 0acbf9861247b9eab0014a629712db618430d2f2..152eba36ff51f74e43f28d4dd120b4b326539f47 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef linux /* old, anyway */
+#ifdef __linux__ /* old, anyway */
 lib "rt";
 #endif
 
@@ -117,3 +117,12 @@ function psi\times(array &$tms = NULL) : int {
                to_int(tms_cstime)
        );
 }
+
+
+function psi\tzset() : void {
+       return tzset() as void(tzset);
+}
+
+function psi\tzname() : array {
+       return tzname_get() as to_array(*tzname_get, 2, to_string(*tzname_get));
+}