select_tut.2: Adjust header file includes in example

Employ <sys/select.h>, rather than the historical header files.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-02-18 09:56:23 +01:00
parent 21677b1bb5
commit 97a5a8d838
1 changed files with 1 additions and 2 deletions

View 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>