mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-08 16:52:13 +08:00
Use strings.h for strcasecmp, except on Windows.
Closes #2420. Thanks to Frédéric Fauberteau.
This commit is contained in:
parent
497cbe0c6c
commit
96931643a4
@ -22,6 +22,10 @@ Contributors:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto_ctrl.h"
|
||||
#include "mosquitto.h"
|
||||
#include "password_mosq.h"
|
||||
|
@ -22,6 +22,10 @@ Contributors:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto.h"
|
||||
#include "mosquitto_ctrl.h"
|
||||
#include "password_mosq.h"
|
||||
|
@ -22,6 +22,10 @@ Contributors:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto_ctrl.h"
|
||||
|
||||
void ctrl_help(void)
|
||||
|
@ -24,6 +24,10 @@ Contributors:
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "lib_load.h"
|
||||
#include "mosquitto.h"
|
||||
#include "mosquitto_ctrl.h"
|
||||
|
@ -21,6 +21,10 @@ Contributors:
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto.h"
|
||||
#include "mqtt_protocol.h"
|
||||
|
||||
|
@ -25,6 +25,10 @@ Contributors:
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "json_help.h"
|
||||
#include "mosquitto.h"
|
||||
#include "mosquitto_broker.h"
|
||||
|
@ -24,6 +24,10 @@ Contributors:
|
||||
#include <uthash.h>
|
||||
#include <utlist.h>
|
||||
|
||||
#ifndef WIN32
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "dynamic_security.h"
|
||||
#include "json_help.h"
|
||||
#include "mosquitto.h"
|
||||
|
25
src/net.c
25
src/net.c
@ -19,15 +19,16 @@ Contributors:
|
||||
#include "config.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <ifaddrs.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <ifaddrs.h>
|
||||
# include <netdb.h>
|
||||
# include <netinet/tcp.h>
|
||||
# include <strings.h>
|
||||
# include <sys/socket.h>
|
||||
# include <unistd.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
@ -36,7 +37,7 @@ Contributors:
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#ifdef WITH_WRAP
|
||||
#include <tcpd.h>
|
||||
# include <tcpd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
@ -49,7 +50,7 @@ Contributors:
|
||||
#endif
|
||||
|
||||
#ifdef __QNX__
|
||||
#include <net/netbyte.h>
|
||||
# include <net/netbyte.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto_broker_internal.h"
|
||||
@ -59,8 +60,8 @@ Contributors:
|
||||
#include "util_mosq.h"
|
||||
|
||||
#ifdef WITH_TLS
|
||||
#include "tls_mosq.h"
|
||||
#include <openssl/err.h>
|
||||
# include "tls_mosq.h"
|
||||
# include <openssl/err.h>
|
||||
static int tls_ex_index_context = -1;
|
||||
static int tls_ex_index_listener = -1;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user