From 1c80bacc6a1e9ecb8724d9ddb14f189be03d2ff2 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Tue, 20 Aug 2002 19:26:03 +0000 Subject: * Update to version 1.0-pre1, which incorporates all our portability fixes plus miscellaneous small improvements. * Enable plugins again by installing .la files (oops). --- audio/gnump3d/files/patch-src::threads.cc | 58 ------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 audio/gnump3d/files/patch-src::threads.cc (limited to 'audio/gnump3d/files/patch-src::threads.cc') diff --git a/audio/gnump3d/files/patch-src::threads.cc b/audio/gnump3d/files/patch-src::threads.cc deleted file mode 100644 index 7d7d0102f4bf..000000000000 --- a/audio/gnump3d/files/patch-src::threads.cc +++ /dev/null @@ -1,58 +0,0 @@ - -$FreeBSD$ - ---- src/threads.cc.orig Sun Jul 14 01:53:50 2002 -+++ src/threads.cc Tue Aug 13 22:15:58 2002 -@@ -39,6 +39,7 @@ - #include - #include - #include /* Portability fix: used to be */ -+#include - #include - #include - #include -@@ -248,7 +249,7 @@ - * worry about things like '%2E'. - * - */ -- if ( path.find( "/../" ) != (unsigned int)-1 ) -+ if ( path.find( "/../" ) != std::string::npos ) - { - path = "/"; - } -@@ -278,7 +279,7 @@ - /* - * Return a playlist of all the files in the given directory. - */ -- if ( path.find( "/all.m3u" ) != (unsigned int)-1 ) -+ if ( path.find( "/all.m3u" ) != std::string::npos ) - { - std::string dir; - int offset = path.find( "/all.m3u" ); -@@ -307,7 +308,7 @@ - /* - * Return a playlist of all the files in the given directory - Recursively. - */ -- if ( path.find( "/recurse.m3u" ) != (unsigned int)-1 ) -+ if ( path.find( "/recurse.m3u" ) != std::string::npos ) - { - std::string dir; - int offset = path.find( "/recurse.m3u" ); -@@ -337,7 +338,7 @@ - * Handle streaming a file or a playlist to the client - don't serve - * the .password file to clients though.. - */ -- if ( path.find( "/.password" ) != (unsigned int)-1 ) -+ if ( path.find( "/.password" ) != std::string::npos ) - { - std::string errText = "'$PATH' - Not found."; - -@@ -441,7 +442,7 @@ - * as a result of 'always_stream' being set to 1). - */ - if ( settings->alwaysStream() && -- ( path.find( ".m3u" ) != (unsigned int)-1 ) ) -+ ( path.find( ".m3u" ) != std::string::npos ) ) - { - /* Strip off the '.m3u' suffix */ - if ( path.size() > 4 ) -- cgit v1.2.3