You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/03/01 06:57:43 UTC

[lucy-commits] svn commit: r1075669 - in /incubator/lucy/trunk/clownfish: src/CFCUtil.c t/403-file.t

Author: marvin
Date: Tue Mar  1 05:57:43 2011
New Revision: 1075669

URL: http://svn.apache.org/viewvc?rev=1075669&view=rev
Log:
Add a missing header file and tighten up an OS check.

Modified:
    incubator/lucy/trunk/clownfish/src/CFCUtil.c
    incubator/lucy/trunk/clownfish/t/403-file.t

Modified: incubator/lucy/trunk/clownfish/src/CFCUtil.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCUtil.c?rev=1075669&r1=1075668&r2=1075669&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCUtil.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCUtil.c Tue Mar  1 05:57:43 2011
@@ -19,6 +19,7 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <errno.h>
 
 #ifndef true
     #define true 1

Modified: incubator/lucy/trunk/clownfish/t/403-file.t
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/t/403-file.t?rev=1075669&r1=1075668&r2=1075669&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/t/403-file.t (original)
+++ incubator/lucy/trunk/clownfish/t/403-file.t Tue Mar  1 05:57:43 2011
@@ -47,7 +47,7 @@ ok( !$file->get_modified, "modified fals
 $file->set_modified(1);
 ok( $file->get_modified, "set_modified, get_modified" );
 
-my $path_sep = $^O =~ /win/i ? '\\' : '/';
+my $path_sep = $^O =~ /^win/i ? '\\' : '/';
 my $path_to_stuff_thing = join($path_sep, qw( path to Stuff Thing ) );
 is( $file->cfh_path('path/to'), "$path_to_stuff_thing.cfh", "cfh_path" );
 is( $file->c_path('path/to'),   "$path_to_stuff_thing.c",   "c_path" );