blob: c756665f00ce46c6a3e5f897775719007a51b1e6 (
plain) (
blame)
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
|
--- netmap/lookup.c.orig Sun Dec 15 14:54:26 2002
+++ netmap/lookup.c Sun Dec 15 14:54:26 2002
@@ -1,6 +1,8 @@
#include <strstream>
#include <iostream>
+#include <sys/types.h>
+#include <sys/socket.h>
#include <netdb.h> //hostent def
//from belgolib
@@ -83,7 +85,7 @@
if(verbose_lvl)
cout << indent(2) << "Reading " << fname << endl;
- Infile cfile(fname, ios::bin | ios::in);
+ Infile cfile(fname, ios::binary | ios::in);
while(cfile && !cfile.eof()) {
HostRec hr;
@@ -229,7 +231,7 @@
void LookUp::read_failedip(const string& fname)
{
- Infile cfile(fname, ios::bin | ios::in);
+ Infile cfile(fname, ios::binary | ios::in);
while(cfile && !cfile.eof()) {
string ip;
|