Skip to content

Commit

Permalink
Fix compilation on musl C systems due to missing sys/time.h header.
Browse files Browse the repository at this point in the history
Thanks to maxice8.
  • Loading branch information
ralight committed Apr 25, 2019
1 parent a53a727 commit 5c0c830
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.6.1 - 201905xx
================

Clients:
- Fix compilation on musl C systems due to missing sys/time.h header.


1.6 - 20190417
==============

Expand Down
6 changes: 6 additions & 0 deletions client/client_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and the Eclipse Distribution License is available at

#include <stdio.h>

#ifdef WIN32
# include <winsock2.h>
#else
# include <sys/time.h>
#endif

/* pub_client.c modes */
#define MSGMODE_NONE 0
#define MSGMODE_CMD 1
Expand Down

0 comments on commit 5c0c830

Please sign in to comment.