0d1eabbc35d217148ce3d662ce06f3d668c11d64
[ira/wip.git] / source3 / lib / replace / system / select.h
1 #ifndef _system_select_h
2 #define _system_select_h
3 /* 
4    Unix SMB/CIFS implementation.
5
6    select system include wrappers
7
8    Copyright (C) Andrew Tridgell 2004
9    
10    This program is free software; you can redistribute it and/or modify
11    it under the terms of the GNU General Public License as published by
12    the Free Software Foundation; either version 2 of the License, or
13    (at your option) any later version.
14    
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19    
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 */
24
25 #ifdef HAVE_SYS_SELECT_H
26 #include <sys/select.h>
27 #endif
28
29 #ifndef SELECT_CAST
30 #define SELECT_CAST
31 #endif
32
33 /* use epoll if it is available */
34 #if defined(HAVE_EPOLL_CREATE) && defined(HAVE_SYS_EPOLL_H)
35 #define WITH_EPOLL 1
36 #endif
37
38 #if WITH_EPOLL
39 #include <sys/epoll.h>
40 #endif
41
42 #endif