Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SHA1.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int SHA1_Final(unsigned char *md, SHA_CTX *c)
# include <libkern/OSByteOrder.h>
# define htobe32(x) OSSwapHostToBigInt32(x)
# define be32toh(x) OSSwapBigToHostInt32(x)
#elif defined(__FreeBSD__) || defined(__NetBSD__)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
# include <sys/endian.h>
#endif
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion src/WebSocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# define be16toh(x) OSSwapBigToHostInt16(x)
# define be32toh(x) OSSwapBigToHostInt32(x)
# define be64toh(x) OSSwapBigToHostInt64(x)
#elif defined(__FreeBSD__) || defined(__NetBSD__)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
# include <sys/endian.h>
#elif defined(_WIN32) || defined(_WIN64)
# pragma comment(lib, "rpcrt4.lib")
Expand Down
2 changes: 2 additions & 0 deletions test/sync_client_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ START_TIME_TYPE start_clock(void)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test1.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test10.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test11.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test15.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test2.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test3.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ char* persistenceStore = NULL;
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))

Expand Down
2 changes: 2 additions & 0 deletions test/test4.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test45.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test5.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test6.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 2
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test8.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test9.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test95.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_connect_destroy.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_issue373.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_mqtt4async.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_mqtt4sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_persistence.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/test_sync_session_present.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down
2 changes: 2 additions & 0 deletions test/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ void getopts(int argc, char** argv)
#define LOGA_INFO 1
#include <stdarg.h>
#include <time.h>
#if !defined(__OpenBSD__)
#include <sys/timeb.h>
#endif
void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
Expand Down