travis: update
[m6w6/ext-psi] / tests / idn / idn.psi
index aaf0f810845f216494cb9a11e5f83409e97367c3..a9e9ba8bbb8d9d75345058c48bb7b448e8a168ba 100644 (file)
@@ -1,6 +1,10 @@
-// libidn
-lib "idn";
+#ifdef __linux__
+#pragma lib "crypt"
+#endif
 
+#include <stdlib.h>
+
+#pragma lib "idn"
 #include <idna.h>
 
 function idn\utf8_to_ascii(string $host, string &$result, int $flags = 0) : int {