Skip to content
Extraits de code Groupes Projets
Vérifiée Valider bc22593d rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MISC: Correct lkt_state struct for windows and forbit the UNIX socket on windows (not supported)

parent da7616b0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!184Draft: Windows build rebased
......@@ -55,15 +55,18 @@ int lkt_message_send(SOCKET fd, const struct lkt_message *const msg);
struct lkt_state {
#if defined(LKT_OS_WIN) && (LKT_OS_WIN == 1)
/* The FDS, Windob' version */
fd_set *fds;
LPWSAPOLLFD fds;
ULONG fds_len;
ULONG fds_max;
#else
/* The FDS, toaster OS version */
struct pollfd *fds;
size_t fds_len;
size_t fds_max;
#endif
struct lkt_client *clients;
size_t fds_len;
size_t fds_max;
char host[HOST_NAME_MAX];
char port[LKT_LINE_MAX];
struct queue queue;
......
......@@ -1110,7 +1110,11 @@ lkt_listen(struct lkt_state *srv)
#endif
LOG_INFO("INIT", "Signal handlers registered");
int is_unix_socket = STR_NMATCH(srv->port, "unix", 4);
#if !(defined(LKT_OS_WIN) && (LKT_OS_WIN == 1))
const int is_unix_socket = STR_NMATCH(srv->port, "unix", 4);
#else
const int is_unix_socket = false;
#endif
unsigned int perms = 0600;
/* FIXME: Use the server register, and add a socket type (which is
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter