39 lines
883 B
Text
39 lines
883 B
Text
$NetBSD: patch-ad,v 1.2 2011/11/25 22:14:17 joerg Exp $
|
|
|
|
--- latcp.cc.orig 2003-04-08 13:08:34.000000000 +0000
|
|
+++ latcp.cc
|
|
@@ -44,9 +44,10 @@
|
|
#include <queue>
|
|
#include <map>
|
|
#include <string>
|
|
-#include <algo.h>
|
|
+#include <algorithm>
|
|
#include <iterator>
|
|
#include <string>
|
|
+#include <iostream>
|
|
#include <strstream>
|
|
|
|
#include "lat.h"
|
|
@@ -54,6 +55,8 @@
|
|
#include "utils.h"
|
|
#include "dn_endian.h"
|
|
|
|
+using std::cout;
|
|
+
|
|
static int latcp_socket;
|
|
|
|
static void make_upper(char *str);
|
|
@@ -773,10 +776,10 @@ void start_latd(int argc, char *argv[])
|
|
latd_bin = "/usr/sbin/latd";
|
|
latd_path = "/usr/sbin";
|
|
}
|
|
- else if (!stat("/usr/local/sbin/latd", &st))
|
|
+ else if (!stat("PREFIX/sbin/latd", &st))
|
|
{
|
|
- latd_bin = "/usr/local/sbin/latd";
|
|
- latd_path = "/usr/local/sbin";
|
|
+ latd_bin = "PREFIX/sbin/latd";
|
|
+ latd_path = "PREFIX/sbin";
|
|
}
|
|
|
|
// Did we find it?
|