nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 096e794bad8dd074caa67315a96d069121081571
parent f3a2c387477fbf28948c54afc4f8c475535d04cf
Author: Rolf Eike Beer <eike@sf-mail.de>
Date:   Fri,  3 Jul 2020 16:50:32 +0200

select.h: do not redeclare select() if including <sys/select.h>

Assume that if <sys/select.h> is found it also contains the proper declaration
for select(). As it's in POSIX we can assume this is the case on any recently
modern system.

Diffstat:
Mselect.h2 | 1-
Mtrysysel.c | 5+++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/select.h2 b/select.h2 @@ -4,6 +4,5 @@ #include <sys/types.h> #include <sys/time.h> #include <sys/select.h> -extern int select(); #endif diff --git a/trysysel.c b/trysysel.c @@ -1,8 +1,9 @@ #include <sys/types.h> #include <sys/time.h> #include <sys/select.h> /* SVR4 silliness */ +#include <stddef.h> -void foo() +int foo() { - ; + return select(0, NULL, NULL, NULL, NULL); }