Skip to content

Commit 4bbde47

Browse files
authored
Merge pull request #61 from zerosign/master
Forget to add the flag in ext/scrypt/Rakefile
2 parents 70d5696 + 4d9e9ca commit 4bbde47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/scrypt/Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
44
t.cflags << "-Wall -std=c99"
55
t.cflags << "-msse -msse2" if t.platform.arch.include? "86"
66
t.cflags << "-D_GNU_SOURCE=1" if RbConfig::CONFIG["host_os"].downcase =~ /mingw/
7+
t.cflags << "-D__need_timespec" if RbConfig::CONFIG['host_os'].downcase =~ /linux/
78
t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
89
t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
910
t.export '../../lib/scrypt/scrypt_ext.rb'

0 commit comments

Comments
 (0)