]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
select_tut.2: Adjust header file includes in example
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 18 Feb 2020 08:56:23 +0000 (09:56 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 18 Feb 2020 21:59:35 +0000 (22:59 +0100)
Employ <sys/select.h>, rather than the historical header files.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/select_tut.2

index a44014d4980212b48bd26b17ccaee5e092f13c25..7b1408de97f5592e0d5f8eb27ddea2f75a93c973 100644 (file)
@@ -354,8 +354,7 @@ from one TCP port to another.
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <sys/time.h>
-#include <sys/types.h>
+#include <sys/select.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/socket.h>