From d67d70895a5525d39e791d751b38b0aabe81daf6 Mon Sep 17 00:00:00 2001 From: afederici <ajf5@illinois.edu> Date: Wed, 18 Nov 2020 20:12:00 -0600 Subject: [PATCH] header fix --- inc/Utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/Utils.h b/inc/Utils.h index d605577..b502536 100644 --- a/inc/Utils.h +++ b/inc/Utils.h @@ -10,8 +10,8 @@ #include <stdio.h> #include <string.h> #include <sys/socket.h> -#include <arpa/inet.h> #include <sys/wait.h> +#include <arpa/inet.h> #ifdef __linux__ #include <bits/stdc++.h> #endif @@ -22,6 +22,9 @@ using std::get; using std::tuple_element; using std::tuple; +static pthread_mutex_t thread_counter_lock = PTHREAD_MUTEX_INITIALIZER; +static int thread_counter = 0; + vector<string> splitString(string s, string delimiter); string getIP(); string getIP(const char * host); -- GitLab