Skip to content

Commit

Permalink
Fix include order for mosquitto 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmaurer committed Jan 12, 2021
1 parent 30a6228 commit bbfd755
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions auth-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
#include <stdio.h>
#include <errno.h>

#include <mosquitto.h>
#include <mosquitto_broker.h>
#include <mosquitto_plugin.h>
#include <mosquitto.h>



#if MOSQ_AUTH_PLUGIN_VERSION >= 3
# include <mosquitto_broker.h>
#endif

#if MOSQ_AUTH_PLUGIN_VERSION >= 3
# define mosquitto_auth_opt mosquitto_opt
#endif
Expand Down

0 comments on commit bbfd755

Please sign in to comment.