1/* @(#) wrapper for udpxy server loop
2 *
3 * Copyright 2008-2012 Pavel V. Cherenkov (pcherenkov@gmail.com)
4 *
5 *  This file is part of udpxy.
6 *
7 *  udpxy is free software: you can redistribute it and/or modify
8 *  it under the terms of the GNU General Public License as published by
9 *  the Free Software Foundation, either version 3 of the License, or
10 *  (at your option) any later version.
11 *
12 *  udpxy is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *  GNU General Public License for more details.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with udpxy.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#define _XOPEN_SOURCE 600
22#define _BSD_SOURCE
23
24#include <sys/syscall.h>
25
26/* need to know if pselect(2) is available */
27#if defined(SYS_pselect6)
28    #define HAS_PSELECT 1
29#endif
30
31/* use pselect(2) in server loop unless select(2) demanded */
32#if defined(HAS_PSELECT) && !defined(USE_SELECT)
33    #define USE_PSELECT 1
34#endif
35
36#ifdef USE_PSELECT
37    #include "sloop_p.c"
38#else
39    #include "sloop_s.c"
40#endif
41
42/* __EOF__ */
43
44