shared-macros.mk: drop support for 32 bit mysql
[oi-userland.git] / components / developer / nim / patches / fix-tiocgwinsz-header.patch
bloba9b3a6831bb50dd01886fec35a5dd76295b4ad66
1 diff -Nru nim-1.6.6.orig/lib/posix/termios.nim nim-1.6.6/lib/posix/termios.nim
2 --- nim-1.6.6.orig/lib/posix/termios.nim 2022-05-05 02:55:22.000000000 +0000
3 +++ nim-1.6.6/lib/posix/termios.nim 2022-06-03 20:29:02.275215845 +0000
4 @@ -237,8 +237,11 @@
5 header: "<termios.h>".}
6 # Get process group ID for session leader for controlling terminal FD.
8 -# Window size ioctl. Should work on on any Unix that xterm has been ported to.
9 -var TIOCGWINSZ*{.importc, header: "<sys/ioctl.h>".}: culong
10 +# Window size ioctl. Solaris based systems have an uncommen place for this.
11 +when defined(solaris) or defined(sunos):
12 + var TIOCGWINSZ*{.importc, header: "<sys/termios.h>".}: culong
13 +else:
14 + var TIOCGWINSZ*{.importc, header: "<sys/ioctl.h>".}: culong
16 when defined(nimHasStyleChecks):
17 {.push styleChecks: off.}