From 926b77b1ee755c5b4cecff34ccc87c536b82d2c6 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Mon, 19 May 2008 10:21:31 +0000 Subject: [PATCH] Don't manually declare select, instead include sys/select.h. --- include/unistd.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 1de298c352..3feb2436a5 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -32,7 +32,7 @@ * * @(#)unistd.h 8.12 (Berkeley) 4/27/95 * $FreeBSD: src/include/unistd.h,v 1.35.2.10 2002/04/15 12:52:28 nectar Exp $ - * $DragonFly: src/include/unistd.h,v 1.22 2008/01/10 22:30:27 nth Exp $ + * $DragonFly: src/include/unistd.h,v 1.23 2008/05/19 10:21:31 corecode Exp $ */ #ifndef _UNISTD_H_ @@ -190,16 +190,6 @@ int rresvport(int *); int rresvport_af(int *, int); int ruserok(const char *, int, const char *, const char *); void *sbrk(intptr_t); -#ifndef _SELECT_DECLARED /* bleh BSD compatibility */ -#define _SELECT_DECLARED -struct timeval; /* select(2) */ -int select(int, fd_set * __restrict, fd_set * __restrict, - fd_set * __restrict, struct timeval * __restrict); -struct timespec; /* pselect(2) */ -int pselect(int, fd_set * __restrict, fd_set * __restrict, - fd_set * __restrict, const struct timespec * __restrict, - const sigset_t * __restrict); -#endif int setdomainname(const char *, int); int setegid(gid_t); int seteuid(uid_t); @@ -245,4 +235,9 @@ int getsubopt(char **, char * const *, char **); extern int optreset; /* getopt(3) external variable */ __END_DECLS +/* BSD compatibility for certain function declarations */ +#ifdef __BSD_VISIBLE +#include +#endif + #endif /* !_UNISTD_H_ */ -- 2.41.0