Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Move _XOPEN_SOURCE flag so it is enabled on all platforms"

This reverts commit c7f507f.
  • Loading branch information...
commit a8556ff651292bdc88f1680c8017ced7fa9be795 1 parent c7f507f
@dbussink dbussink authored
View
2  rakelib/const_generator.rb
@@ -67,7 +67,7 @@ def calculate
f.puts "\n\treturn 0;\n}"
f.flush
- `gcc -D_XOPEN_SOURCE=500 -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall #{f.path} -o #{binary}`
+ `gcc -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall #{f.path} -o #{binary}`
end
output = `./#{binary}`
View
2  rakelib/struct_generator.rb
@@ -75,7 +75,7 @@ def calculate
$stderr.puts f.read
end
- `gcc -D_XOPEN_SOURCE=500 -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall #{f.path} -o #{binary}`
+ `gcc -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall #{f.path} -o #{binary}`
if $?.exitstatus == 1
@found = false
return
View
2  rakelib/types_generator.rb
@@ -32,7 +32,7 @@ def self.generate
"void *" => :pointer
}
- typedefs = `echo "#include <sys/types.h>\n#include <sys/socket.h>\n#include <netdb.h>\n#include <sys/resource.h>" | cpp -D_XOPEN_SOURCE=500 -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64`
+ typedefs = `echo "#include <sys/types.h>\n#include <sys/socket.h>\n#include <sys/resource.h>" | cpp -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64`
code = ""
typedefs.each do |type|
# We only care about single line typedef
View
4 shotgun/lib/Makefile
@@ -1,7 +1,7 @@
-include ../config.mk
include ../common.mk
-CPPFLAGS += -I.. -I../.. -I../../.. -I../external_libs/lightning -I../external_libs/libev -I../external_libs/onig -I../external_libs/libtommath -I../external_libs/libzip/lib -I../external_libs/libltdl -I../external_libs/libbstring -I../external_libs/libcchash -I../external_libs/libmpa -I../external_libs/libmquark -D_GNU_SOURCE -D_XOPEN_SOURCE=500
+CPPFLAGS += -I.. -I../.. -I../../.. -I../external_libs/lightning -I../external_libs/libev -I../external_libs/onig -I../external_libs/libtommath -I../external_libs/libzip/lib -I../external_libs/libltdl -I../external_libs/libbstring -I../external_libs/libcchash -I../external_libs/libmpa -I../external_libs/libmquark -D_GNU_SOURCE
LIBS=-lz ../external_libs/libtommath/libtommath.a ../external_libs/onig/.libs/libonig.a ../external_libs/libzip/lib/.libs/libzip.a $(SINGLE_MODULE) ../external_libs/libev/.libs/libev.a ../external_libs/libltdl/.libs/libltdl.a -lm ../external_libs/libbstring/libbstring.a ../external_libs/libcchash/libcchash.a ../external_libs/libmpa/libptr_array.a ../external_libs/libmquark/libmquark.a
@@ -10,7 +10,7 @@ ifeq ($(UNAME),Linux)
endif
ifeq ($(UNAME),Darwin)
- CPPFLAGS += -D_DARWIN_USE_64_BIT_INODE
+ CPPFLAGS += -D_XOPEN_SOURCE -D_DARWIN_USE_64_BIT_INODE
SINGLE_MODULE=-Wl,-single_module
else
SINGLE_MODULE=
Please sign in to comment.
Something went wrong with that request. Please try again.