fix stdlib inclusion on linux
[m6w6/ext-psi] / tests / idn / idn.psi
index 77afbc7fbe35277dfec5bf07804289eea918102e..9b562c2d39f2b82e27d91d909320f1f63bbc7446 100644 (file)
@@ -1,7 +1,10 @@
-// libidn
-lib "idn";
+#ifdef __linux__
+lib "crypt";
+#endif
 
 #include <stdlib.h>
+
+lib "idn";
 #include <idna.h>
 
 function idn\utf8_to_ascii(string $host, string &$result, int $flags = 0) : int {