mirror of
https://github.com/emqx/neuron.git
synced 2026-10-26 11:56:10 +08:00
Fix issue of failed to compile connection.c in macOS
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef SOCK_NONBLOCK
|
||||
#include <fcntl.h>
|
||||
#define SOCK_NONBLOCK O_NONBLOCK
|
||||
#endif
|
||||
|
||||
#include "connection/neu_connection.h"
|
||||
#include "neu_log.h"
|
||||
|
||||
@@ -492,4 +497,4 @@ static void conn_disconnect(neu_conn_t *conn)
|
||||
}
|
||||
|
||||
conn->is_connected = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user