Permalink
Browse files

fixing typoe in HAS_ALLOCA_H_ macro command line flag

  • Loading branch information...
1 parent 8ab0eb8 commit de377e60ba28b8538b20cb88dd7d8b9b42cfc747 @mattconnolly committed Apr 16, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 ext/common/EventedMessageServer.h
  2. +2 −2 lib/phusion_passenger/platform_info/compiler.rb
View
2 ext/common/EventedMessageServer.h
@@ -31,6 +31,8 @@
#include <cstdlib>
#ifdef HAS_ALLOCA_H_
#include <alloca.h>
+#else
+ #error "alloca is required."
#endif
#include "EventedServer.h"
#include "MessageReadersWriters.h"
View
4 lib/phusion_passenger/platform_info/compiler.rb
@@ -145,7 +145,7 @@ def self.portability_cflags
flags << '-pthreads'
if RUBY_PLATFORM =~ /solaris2.11/
# skip the _XOPEN_SOURCE and _XPG4_2 definitions in later versions of Solaris / OpenIndiana
- flags << '-DHAS_ALLOCA_H_ -D__EXTENSIONS__ -D__SOLARIS__ -D_FILE_OFFSET_BITS=64'
+ flags << '-D__EXTENSIONS__ -D__SOLARIS__ -D_FILE_OFFSET_BITS=64'
else
flags << '-D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__ -D__SOLARIS__ -D_FILE_OFFSET_BITS=64'
flags << '-D__SOLARIS9__ -DBOOST__STDC_CONSTANT_MACROS_DEFINED' if RUBY_PLATFORM =~ /solaris2.9/
@@ -163,7 +163,7 @@ def self.portability_cflags
flags << '-DBOOST_SP_USE_PTHREADS'
end
- flags << '-DHAS_ALLOCA_H' if has_alloca_h?
+ flags << '-DHAS_ALLOCA_H_' if has_alloca_h?
flags << '-DHAS_SFENCE' if supports_sfence_instruction?
flags << '-DHAS_LFENCE' if supports_lfence_instruction?

0 comments on commit de377e6

Please sign in to comment.