From 0d9298523db6ab4970a8333373da1d0e3c8aec4b Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 21 Nov 2005 18:16:36 +0000 Subject: [PATCH] Move contents of sys/select.h to sys/selinfo.h in preparation for a userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@. --- src/include/unistd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index ae2e03e6..1a28ebc8 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.54 2005/11/20 02:24:59 millert Exp $ */ +/* $OpenBSD: unistd.h,v 1.55 2005/11/21 18:16:36 millert Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -190,7 +190,8 @@ int ruserok(const char *, int, const char *, const char *); int quotactl(const char *, int, int, char *); void *sbrk(int); -#if !defined(_XOPEN_SOURCE) +#if !defined(_XOPEN_SOURCE) && !defined(_SELECT_DEFINED_) +#define _SELECT_DEFINED_ int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); #endif