#include <getopt.h>
// Select or epoll
-#ifdef NETWORKING
+#if NETWORKING
#ifdef HAVE_EPOLL
/* epoll_create, epoll_ctl, epoll_pwait */
#include <sys/epoll.h>
#define DIR_SEPARATOR '/'
#endif
-#ifdef NETWORKING
+#if NETWORKING
struct netmask {
in6_addr addr;
unsigned bits;
/* Root binary directory. */
static const char *flag_root = "gcm.cache";
-#ifdef NETWORKING
+#if NETWORKING
static netmask_set_t netmask_set;
static netmask_vec_t accept_addrs;
exit (1);
}
-#ifdef NETWORKING
+#if NETWORKING
/* Progress messages to the user. */
static bool ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD
noisy (const char *fmt, ...)
return optind;
}
-#ifdef NETWORKING
+#if NETWORKING
/* Manipulate the EPOLL state, or do nothing, if there is epoll. */
/* Ignore sigpipe, so read/write get an error. */
signal (SIGPIPE, SIG_IGN);
#endif
-#ifdef NETWORKING
+#if NETWORKING
#ifdef SIGINT
signal (SIGINT, kill_signal);
#endif
}
#endif
-#ifdef NETWORKING
+#if NETWORKING
if (sock_fd >= 0)
{
server (name[0] != '=', sock_fd, &r);