ry / ebb fork watch download tarball
public this repo is viewable by everyone
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Remove -std=c99

This was causing the preprocessor not to run properly with gcc 4.1. Since 
I
hadn't begun to use the c99 features, the quick solution is just to remove

it.
Ryan Dahl (author)
2 months ago
commit  04b5e9384ff98fbd2e57ab18b21150e98a079087
tree    9a6deb58cb85efe17386c4efa365774d02551b55
parent  9135730bd8c3e7c3b163b98d1d216a83b6bef5d0
...
50
51
52
53
 
 
54
55
56
...
50
51
52
 
53
54
55
56
57
0
@@ -50,7 +50,8 @@ VALUE env_field(const char *field, int length)
0
           , RSTRING_PTR(global_http_prefix)
0
           , RSTRING_LEN(global_http_prefix)
0
           );
0
- for(int i = 0; i < length; i++) {
0
+ int i;
0
+ for(i = 0; i < length; i++) {
0
       char *ch = RSTRING_PTR(f) + RSTRING_LEN(global_http_prefix) + i;
0
       if(field[i] == '-') {
0
         *ch = '_';
...
35
36
37
38
 
39
40
41
...
35
36
37
 
38
39
40
41
0
@@ -35,7 +35,7 @@ dir = File.dirname(__FILE__)
0
 libev_dir = File.expand_path(dir + '/../libev')
0
 
0
 $LDFLAGS << " -lpthread "
0
-$CFLAGS << " -std=c99 -I#{libev_dir} " << flags.join(' ')
0
+$CFLAGS << " -I#{libev_dir} " << flags.join(' ')
0
 $defs << "-DRUBY_VERSION_CODE=#{RUBY_VERSION.gsub(/\D/, '')}"
0
 
0
 

Comments

    No one has commented yet.