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

Fix build on windows

parent 7d62bb75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!184Draft: Windows build rebased
...@@ -224,7 +224,11 @@ config_detect_file(char *conf, size_t conf_len) ...@@ -224,7 +224,11 @@ config_detect_file(char *conf, size_t conf_len)
memset(conf, 0, conf_len * sizeof(char)); memset(conf, 0, conf_len * sizeof(char));
/* Try the current working dir config file. */ /* Try the current working dir config file. */
#if !(defined(LKT_OS_WIN) && (LKT_OS_WIN == 1))
if (getcwd(conf, to_size_t(conf_len)-1) != NULL) { if (getcwd(conf, to_size_t(conf_len)-1) != NULL) {
#else
if (getcwd(conf, (int)(conf_len)-1) != NULL) {
#endif
strncat(conf, "/lektor.ini", conf_len - 1); strncat(conf, "/lektor.ini", conf_len - 1);
LOG_INFO("CONFIG", "Trying %s", conf); LOG_INFO("CONFIG", "Trying %s", conf);
if (!access(conf, R_OK | F_OK)) if (!access(conf, R_OK | F_OK))
......
...@@ -648,7 +648,11 @@ init_listening_socket_net(const char *host, const char *port) ...@@ -648,7 +648,11 @@ init_listening_socket_net(const char *host, const char *port)
} }
PRIVATE_FUNCTION int PRIVATE_FUNCTION int
#if defined(LKT_OS_WIN) && (LKT_OS_WIN == 1)
accept_all(SOCKET listen_fd, struct pollfd *fds, size_t fds_max, ULONG *fds_len)
#else
accept_all(SOCKET listen_fd, struct pollfd *fds, size_t fds_max, size_t *fds_len) accept_all(SOCKET listen_fd, struct pollfd *fds, size_t fds_max, size_t *fds_len)
#endif
{ {
SOCKET fd; SOCKET fd;
struct sockaddr_in peer_addr; struct sockaddr_in peer_addr;
......
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