fix stdlib inclusion on linux
[m6w6/ext-psi] / tests / idn / idn.psi
index aaf0f810845f216494cb9a11e5f83409e97367c3..9b562c2d39f2b82e27d91d909320f1f63bbc7446 100644 (file)
@@ -1,6 +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 {