diff --git a/lib/gssapi/lib_gssapi_loader.rb b/lib/gssapi/lib_gssapi_loader.rb index ae0526c..5164ebd 100644 --- a/lib/gssapi/lib_gssapi_loader.rb +++ b/lib/gssapi/lib_gssapi_loader.rb @@ -7,8 +7,8 @@ module GSSAPI module LibGSSAPI class GssOID < FFI::Struct - layout :length, :OM_uint32, - :elements, :pointer # pointer of :void + # pointer of :void + layout(:length, :OM_uint32, :elements, :pointer) unless defined? @layout def self.gss_c_no_oid self.new(GSSAPI::LibGSSAPI::GSS_C_NO_OID)