summaryrefslogtreecommitdiff
path: root/cad/simian/patches/patch-ag
blob: 28e639cd7e8d7506b1e53ae52204cfc9415ebf82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ag,v 1.2 2005/11/03 19:56:36 rillig Exp $

--- src/linklist.cc.orig	1998-12-07 08:28:51.000000000 +0000
+++ src/linklist.cc
@@ -1,12 +1,13 @@
+#include <iostream>
+#include <sstream>
 #include <stdlib.h>
 #include <stdio.h>
-#include <stream.h>
 #include "weeks.h"
 
 void newCon(Conductor* conduc)
 {
   if ((conduc->next=new Conductor)==NULL) {
-    cerr << "Can't allocate!\n";
+    std::cerr << "Can't allocate!\n";
     exit(1);
   }
 }
@@ -15,7 +16,7 @@ void newCon(Conductor* conduc)
 void newFil(Filament* filam)
 {
   if ((filam->next=new Filament)==(Filament*)NULL) {
-    cerr << "Can't allocate!\n";
+    std::cerr << "Can't allocate!\n";
     exit(1);
   }
   filam->next->next = (Filament*) NULL;