View | Details | Raw Unified | Return to bug 46263
Collapse All | Expand All

(-)dirtree.new/Makefile (-7 / +1 lines)
Lines 23-32 Link Here
23
23
24
MAN1=	dirtree.1
24
MAN1=	dirtree.1
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.mk>
27
28
.if ${OSVERSION} >= 500035
29
BROKEN=		"Does not compile on 5.0"
30
.endif
31
32
.include <bsd.port.post.mk>
(-)dirtree.new/files/patch-src::CppDir.cpp (+17 lines)
Line 0 Link Here
1
--- src/CppDir.cpp.orig	Sun Dec 15 08:31:02 2002
2
+++ src/CppDir.cpp	Sun Dec 15 08:34:44 2002
3
@@ -1,4 +1,5 @@
4
 #include "CppDir.hh"
5
+#include <ostream>
6
 
7
 #ifdef LINUX
8
 #  include <sys/stat.h>
9
@@ -152,7 +153,7 @@
10
     }
11
 }
12
 
13
-ostream& CppDir::operator << ( ostream& out , File::Type type )
14
+std::ostream& CppDir::operator << ( std::ostream& out , File::Type type )
15
 {
16
   switch( type )
17
     {
(-)dirtree.new/files/patch-src::CppDir.hh (+11 lines)
Line 0 Link Here
1
--- src/CppDir.hh.orig	Sun Dec 15 08:32:48 2002
2
+++ src/CppDir.hh	Sun Dec 15 08:35:12 2002
3
@@ -95,7 +95,7 @@
4
       void close(); ///< closes the directory
5
     };
6
 
7
-  ostream& operator << ( ostream& out , File::Type type );
8
+  std::ostream& operator << ( std::ostream& out , File::Type type );
9
   std::string concat_dir( std::string path, std::string name );
10
 }
11
 
(-)dirtree.new/files/patch-src::xgetcwd.cpp (+16 lines)
Line 0 Link Here
1
--- src/xgetcwd.cpp.orig	Sun Dec 15 08:39:34 2002
2
+++ src/xgetcwd.cpp	Sun Dec 15 08:39:36 2002
3
@@ -11,10 +11,10 @@
4
    function returns a string */
5
 std::string xgetcwd()
6
 {
7
-  const unsigned int PATH_MAX = 100;
8
-  const unsigned int PATH_INC = PATH_MAX;
9
+  const unsigned int PATHMAX = 100;
10
+  const unsigned int PATH_INC = PATHMAX;
11
 
12
-  unsigned int path_max = PATH_MAX;
13
+  unsigned int path_max = PATHMAX;
14
   path_max += 2;		/* The getcwd docs say to do this. */
15
 
16
   char* cwd = static_cast<char*>(malloc(path_max));

Return to bug 46263