]> Savannah Git Hosting - gnulib.git/commitdiff
pty: Define 'struct winsize' on all platforms.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 17 Aug 2024 04:19:46 +0000 (21:19 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 17 Aug 2024 04:19:46 +0000 (21:19 -0700)
* modules/pty (Depends-on): Add termios.
* lib/pty.in.h: Make comments more accurate.
(struct winsize): Remove forward declaration.

ChangeLog
lib/pty.in.h
modules/pty

index ee8851fea54d433ec059ea26a6946d0f25457b34..2f61940815a150ebb64f6b8ee4002814422a9d25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-16  Collin Funk  <collin.funk1@gmail.com>
+
+       pty: Define 'struct winsize' on all platforms.
+       * modules/pty (Depends-on): Add termios.
+       * lib/pty.in.h: Make comments more accurate.
+       (struct winsize): Remove forward declaration.
+
 2024-08-16  Bruno Haible  <bruno@clisp.org>
 
        gitsub.sh: For a submodule, merge from the right remote branch.
index 37470cb63dcda711800eab6517db9db26525e748..9f597b2252dc2adfe7471502e30b634ca6691ebe 100644 (file)
 # include <libutil.h>
 #endif
 
-/* Get 'struct termios' and 'struct winsize'.  */
+/* Get 'struct termios', if available, and 'struct winsize'.  */
 #include <termios.h>
 #if defined _AIX
 # include <sys/ioctl.h>
 #endif
-/* Mingw lacks 'struct termios' and 'struct winsize', but a forward
-   declaration of an opaque type is sufficient to allow compilation of
-   a stub openpty().  */
+/* Mingw lacks 'struct termios', but a forward declaration of an opaque type is
+   sufficient to allow compilation of a stub openpty().  */
 struct termios;
-struct winsize;
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
index 8f3da034fce37a5568b984faaed75b10e8b61f32..7a1a2e3894ba73bf16a29f8c5e1b17bfc34f7ee3 100644 (file)
@@ -10,6 +10,7 @@ gen-header
 include_next
 snippet/c++defs
 snippet/warn-on-use
+termios
 
 configure.ac:
 gl_PTY_H