projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ca3da
)
pal_console.c: cast TIOCSWINSZ to int when HAVE_IOCTL_WITH_INT_REQUEST (#82676)
author
Antoine Martin
<dev@ayakael.net>
Mon, 27 Feb 2023 14:37:44 +0000
(09:37 -0500)
committer
GitHub
<noreply@github.com>
Mon, 27 Feb 2023 14:37:44 +0000
(09:37 -0500)
src/native/libs/System.Native/pal_console.c
patch
|
blob
|
history
diff --git
a/src/native/libs/System.Native/pal_console.c
b/src/native/libs/System.Native/pal_console.c
index
d217075
..
52241f4
100644
(file)
--- a/
src/native/libs/System.Native/pal_console.c
+++ b/
src/native/libs/System.Native/pal_console.c
@@
-43,7
+43,9
@@
int32_t SystemNative_SetWindowSize(WinSize* windowSize)
{
assert(windowSize != NULL);
-#if HAVE_IOCTL && HAVE_TIOCSWINSZ
+#if HAVE_IOCTL_WITH_INT_REQUEST && HAVE_TIOCSWINSZ
+ return ioctl(STDOUT_FILENO, (int)TIOCSWINSZ, windowSize);
+#elif HAVE_IOCTL && HAVE_TIOCSWINSZ
return ioctl(STDOUT_FILENO, TIOCSWINSZ, windowSize);
#else
// Not supported on e.g. Android. Also, prevent a compiler error because windowSize is unused