summaryrefslogtreecommitdiffstats
path: root/src/torclient.cpp
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2020-10-20 14:40:51 +0200
committergregory guy <[email protected]>2021-01-13 18:12:31 +0100
commit81b64bcfc0a32fdeb0e4f367adbf273d924e55f4 (patch)
tree9e0903eb2b5cc19a7dcf4874d098a29133d3163c /src/torclient.cpp
parent8b4f72aa0753110a46db9195216f3c88e14a9b69 (diff)
downloadtork-81b64bcfc0a32fdeb0e4f367adbf273d924e55f4.tar.gz
tork-81b64bcfc0a32fdeb0e4f367adbf273d924e55f4.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/torclient.cpp')
-rw-r--r--src/torclient.cpp40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/torclient.cpp b/src/torclient.cpp
index 1652ed2..27c9477 100644
--- a/src/torclient.cpp
+++ b/src/torclient.cpp
@@ -19,18 +19,17 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
-#include <ntqsocket.h>
-#include <ntqtextstream.h>
-#include <ntqstringlist.h>
-#include <ntqregexp.h>
-#include "torclient.h"
-#include "tork.h"
-#include "torkconfig.h"
-#include "dndlistview.h"
-#include "functions.h"
+#include <tqdir.h>
+#include <tqsocket.h>
+#include <tqtextstream.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqtimer.h>
-#include <ntqtimer.h>
#include <tdelocale.h>
#include <assert.h>
#include <ntqfile.h>
@@ -40,15 +39,20 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <kstandarddirs.h>
-#include <ntqdir.h>
-#include "crypto.h"
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
+#include "torclient.h"
+#include "tork.h"
+#include "torkconfig.h"
+#include "dndlistview.h"
+#include "functions.h"
+#include "crypto.h"
+
/* Linux-specific includes */
#include <dirent.h>
#include <unistd.h>
@@ -827,10 +831,10 @@ void TorClient::parseServer(const TQString &info)
GeoIP * gi = 0;
if (geoip_db)
-#ifndef EXTERNAL_GEOIP
- gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
-#else
+#ifdef EXTERNAL_GEOIP
gi = GeoIP_new(GEOIP_STANDARD);
+#else
+ gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
#endif
if (gi){