зеркало из https://github.com/github/memcached.git
Include new header for 0.19.
This commit is contained in:
Родитель
270cbd4b17
Коммит
e513c7a8d1
|
@ -21,8 +21,9 @@ dir_config 'rlibmemcached'
|
|||
unless find_library 'memcached', 'memcached_server_add', *ENV['LD_LIBRARY_PATH'].to_s.split(":")
|
||||
raise "shared library 'libmemcached' not found"
|
||||
end
|
||||
unless find_header 'libmemcached/memcached.h', *ENV['INCLUDE_PATH'].to_s.split(":")
|
||||
raise "header file 'libmemcached/memcached.h' not found"
|
||||
|
||||
['libmemcached/memcached.h', 'libmemcached/memcached_constants.h'].each do |include|
|
||||
raise "header file '#{include}' not found" unless find_header include, *ENV['INCLUDE_PATH'].to_s.split(":")
|
||||
end
|
||||
|
||||
create_makefile 'rlibmemcached'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
%module rlibmemcached
|
||||
%{
|
||||
#include <libmemcached/memcached.h>
|
||||
#include <libmemcached/memcached_constants.h>
|
||||
%}
|
||||
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) memcached_st;
|
||||
|
@ -89,6 +90,7 @@
|
|||
};
|
||||
|
||||
%include "/opt/local/include/libmemcached/memcached.h"
|
||||
%include "/opt/local/include/libmemcached/memcached_constants.h"
|
||||
|
||||
//// Custom C functions
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче