summaryrefslogtreecommitdiff
path: root/www/logtools/files/patch-clfdomainsplit.cpp
blob: c813ba9c35286a7a667884388bdb3e3c4553b8d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- clfdomainsplit.cpp.orig	2016-12-25 15:08:38 UTC
+++ clfdomainsplit.cpp
@@ -1,15 +1,18 @@
-#include <stdio.h>
-
+#include <cstdio>
+#include <cstdlib>
 #include <unordered_map>
 
 #include <unistd.h>
 #include <cstring>
 #include <vector>
-#include <ctype.h>
+#include <cctype>
+#include <string>
 #include "logtools.h"
 
 using namespace std;
+#if !defined(_LIBCPP_VERSION)
 using namespace __gnu_cxx;
+#endif
 
 // MAX_FDS is the maximum number of files that will be directly written to
 // by one process