forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apt-429-fix-gcc-47.patch
50 lines (43 loc) · 1.1 KB
/
apt-429-fix-gcc-47.patch
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/apt-pkg/contrib/progress.h b/apt-pkg/contrib/progress.h
index fd32f13..6926ad7 100644
--- a/apt-pkg/contrib/progress.h
+++ b/apt-pkg/contrib/progress.h
@@ -24,6 +24,7 @@
#include <map>
#include <string>
#include <sys/time.h>
+#include <unistd.h>
using std::string;
using std::map;
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h
index ef5f897..cc2cdb6 100644
--- a/apt-pkg/pkgcache.h
+++ b/apt-pkg/pkgcache.h
@@ -21,6 +21,7 @@
#include <string>
#include <time.h>
+#include <unistd.h>
#include <apt-pkg/mmap.h>
using std::string;
diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h
index 924617c..802fd6b 100644
--- a/apt-pkg/srcrecords.h
+++ b/apt-pkg/srcrecords.h
@@ -14,7 +14,8 @@
#define PKGLIB_SRCRECORDS_H
#include <string>
-#include <vector>
+#include <vector>
+#include <unistd.h>
using std::string;
using std::vector;
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index 8bccb96..18e435d 100644
--- a/apt-pkg/tagfile.h
+++ b/apt-pkg/tagfile.h
@@ -22,6 +22,7 @@
#include <apt-pkg/fileutl.h>
#include <stdio.h>
+#include <unistd.h>
class pkgTagSection
{