$NetBSD: patch-at,v 1.4 2020/03/26 02:33:57 joerg Exp $

--- x11/serverping.cpp.orig	2003-03-22 21:55:12.000000000 +0000
+++ x11/serverping.cpp
@@ -25,8 +25,9 @@
 // code and should be reasonably easy to compile on Windows.
 
 
-#include <iostream.h>
-#include <strstream.h>
+#include <iostream>
+#include <strstream>
+using namespace std;
 #include "utils.h"
 #include "streams.h"
 #include "xetp_basic.h"
@@ -112,8 +113,8 @@ ServerPing::ServerPing(int argc,char** a
   }
 
 
-  char* sString = argv[argc - 1];
-  char* port = Utils::strchr(sString,':');
+  const char* sString = argv[argc - 1];
+  const char* port = Utils::strchr(sString,':');
   // server:port
   if (port) {
     serverName = new char[port - sString + 1];
@@ -355,7 +356,7 @@ void ServerPing::print_results_and_exit(
 
 
 
-main(int argc,char** argv) {
+int main(int argc,char** argv) {
   ServerPing ping(argc,argv);
   ping.go();
 }
