source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: For TIOCGWINSZ, #include <termios.h> rather than <sys/termios.h>
@ 2019-03-04 18:15 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-04 18:15 UTC (permalink / raw)
  To: source

Log Message:
-----------
For TIOCGWINSZ, #include <termios.h> rather than <sys/termios.h>
like almost all other userland programs.  This also improves 
portability: for example, it looks like <sys/termios.h> does not
work on FreeBSD, or at least bapt@ did the same change over there.

Modified Files:
--------------
    mandoc:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/main.c,v
retrieving revision 1.320
retrieving revision 1.321
diff -Lmain.c -Lmain.c -u -p -r1.320 -r1.321
--- main.c
+++ main.c
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/param.h>	/* MACHINE */
-#include <sys/termios.h>
 #include <sys/wait.h>
 
 #include <assert.h>
@@ -40,6 +39,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
+#include <termios.h>
 #include <time.h>
 #include <unistd.h>
 
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-04 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 18:15 mandoc: For TIOCGWINSZ, #include <termios.h> rather than <sys/termios.h> schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).