Use termux_error_exit in more cases
[termux-packages] / packages / picolisp / src-ext.c.patch
index 28985d9..cb246bd 100644 (file)
@@ -1,19 +1,11 @@
-The crypt(3) function is not available in Android, so remove support
-in ext for now.
-
 diff -u -r ../picoLisp/src/ext.c ./src/ext.c
---- ../picoLisp/src/ext.c      2015-04-27 00:34:17.000000000 -0400
-+++ ./src/ext.c        2015-11-27 06:07:18.767005597 -0500
-@@ -252,6 +252,7 @@
+--- ../picoLisp/src/ext.c      2016-04-01 04:05:10.000000000 -0400
++++ ./src/ext.c        2016-04-13 06:40:31.791712225 -0400
+@@ -3,6 +3,7 @@
+  */
  
- /*** Password hashing ***/
- // (Ext:Crypt 'key 'salt) -> str
-+#ifndef __ANDROID__
- any Crypt(any x) {
-    any y;
+ #include "pico.h"
++#include <crypt.h>
  
-@@ -269,3 +270,4 @@
-       }
-    }
- }
-+#endif
+ /*** Soundex Algorithm ***/
+ static int SnxTab[] = {