summaryrefslogtreecommitdiff
path: root/plugin/handler_socket
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/handler_socket')
-rw-r--r--plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp5
-rw-r--r--plugin/handler_socket/libhsclient/allocator.hpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp b/plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp
index 9863602af7a..f6bbe9004c2 100644
--- a/plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp
+++ b/plugin/handler_socket/handlersocket/hstcpsvr_worker.cpp
@@ -6,7 +6,7 @@
* See COPYRIGHT.txt for details.
*/
-#include <my_global.h>
+#include <my_alloca.h>
#include <netinet/in.h>
#include <errno.h>
#include <poll.h>
@@ -17,9 +17,6 @@
#if __linux__
#include <sys/epoll.h>
#endif
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
#include "hstcpsvr_worker.hpp"
#include "string_buffer.hpp"
diff --git a/plugin/handler_socket/libhsclient/allocator.hpp b/plugin/handler_socket/libhsclient/allocator.hpp
index dd3a28ba7bd..9df6a1ab752 100644
--- a/plugin/handler_socket/libhsclient/allocator.hpp
+++ b/plugin/handler_socket/libhsclient/allocator.hpp
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <string.h>
+#include <my_alloca.h>
#if 0
extern "C" {