ports: Add libfyaml port

This commit is contained in:
2026-08-24 21:53:03 +03:00
parent 9b5fd077d2
commit 69d8927c12
4 changed files with 89 additions and 0 deletions
@@ -0,0 +1,17 @@
diff -ruN libfyaml-0.9.6/src/util/fy-utils.c libfyaml-0.9.6-banan_os/src/util/fy-utils.c
--- libfyaml-0.9.6/src/util/fy-utils.c 2026-03-15 15:48:50.000000000 +0200
+++ libfyaml-0.9.6-banan_os/src/util/fy-utils.c 2026-03-25 03:41:24.070062486 +0200
@@ -434,7 +434,13 @@
newt = t;
+#ifdef __banan_os__
+ newt.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
+ newt.c_oflag &= ~(OPOST);
+ newt.c_lflag &= ~(ECHO | ECHONL | ISIG | ICANON | IEXTEN);
+#else
cfmakeraw(&newt);
+#endif
ret = tcsetattr(fd, TCSANOW, &newt);
if (ret != 0)