From 150ee0854fcea2f79f23c2e569ff963baedf0d38 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 30 Jul 2020 21:54:00 -0300 Subject: [PATCH] Debugging on windows. --- client/src/testprogram/testprogram.cc | 15 +++++++++++++++ locale/Makefile.in | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index 42ac01e..e8eab7a 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -36,6 +36,8 @@ * */ + #include + #ifndef _WIN32 #include #pragma GCC diagnostic ignored "-Wunused-function" @@ -125,6 +127,17 @@ TN3270::Host host{session}; + host.connect(); + + cout << "------------------------------" << endl; + auto start = time(nullptr); + host.waitForReady(5); + cout << "Time: " << (time(nullptr) - start) << std::endl; + cout << "------------------------------" << endl; + + host.disconnect(); + + /* cout << "Version: " << host["version"] << "\tRevision: " << host["Revision"] @@ -169,6 +182,8 @@ host.disconnect(); + */ + } catch(const std::exception &e) { cerr << std::endl << e.what() << std::endl << std::endl; diff --git a/locale/Makefile.in b/locale/Makefile.in index 6cf1c0c..3685a5c 100644 --- a/locale/Makefile.in +++ b/locale/Makefile.in @@ -65,7 +65,7 @@ $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ @$(MKDIR) `dirname $@` @$(MSGFMT) -c -v -o $@ $^ -$(DESTDIR)/$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ +$(DESTDIR)$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo @echo $< ... @@ -78,7 +78,7 @@ all: \ $(foreach SRC, $(basename $(wildcard *.po)), $(BINDIR)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) install: \ - $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)/$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) + $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) -- libgit2 0.21.2