diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2003-07-18 02:18:59 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2003-07-18 02:18:59 +0000 |
commit | 8ea51524e6c5825ea5ffabd007f390162b2d2e24 (patch) | |
tree | 7c1ce870ba2ebef2f143a9287f7e4b0c9842bbed /net/arts++/files/patch-apps::artstos::artstos.cc | |
parent | Update to 2.2.90. (diff) |
Split mega-patch file patch-aa into individual patch files for easy
updating.
Notes
Notes:
svn path=/head/; revision=85081
Diffstat (limited to 'net/arts++/files/patch-apps::artstos::artstos.cc')
-rw-r--r-- | net/arts++/files/patch-apps::artstos::artstos.cc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net/arts++/files/patch-apps::artstos::artstos.cc b/net/arts++/files/patch-apps::artstos::artstos.cc new file mode 100644 index 000000000000..a8223a7cb5a0 --- /dev/null +++ b/net/arts++/files/patch-apps::artstos::artstos.cc @@ -0,0 +1,43 @@ +--- ./apps/artstos/artstos.cc.orig Mon Oct 2 13:05:13 2000 ++++ ./apps/artstos/artstos.cc Wed Sep 25 16:38:09 2002 +@@ -52,14 +52,19 @@ + #include <errno.h> + } + +-#include <fstream.h> +-#include <string> +- + #include "ArtsTosTable.hh" + #include "ArtsIfIndexSelectionSet.hh" + #include "ArtsTimeIntervalSelectionSet.hh" + #include "ArtsPackageVersion.hh" + ++#ifdef HAVE_FSTREAM ++# include <fstream> ++# include <iterator> ++ using namespace std; ++#else ++# include <fstream.h> ++#endif ++ + #ifndef NDEBUG + #include "ArtsDebug.hh" + #endif +@@ -108,7 +113,7 @@ + } + } + +- if (hostAttribute) { ++ if (hostAttribute != arts.Attributes().end()) { + inAddr.s_addr = hostAttribute->Host(); + cout << "router: " << inet_ntoa(inAddr) << endl; + } +@@ -126,7 +131,7 @@ + } + cout << endl; + +- if (periodAttribute) { ++ if (periodAttribute != arts.Attributes().end() ) { + periodTimes[0] = periodAttribute->Period()[0]; + periodTimes[1] = periodAttribute->Period()[1]; + localTm = localtime(&(periodTimes[0])); |