Re: open_dll problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Might try replacing this part of inet_address function in GtkEngine.e:

------------------------------  
export function inet_address()  
---------------------------------  
object results  
object addr  
 
ifdef LINUX then  
     sequence tmp = temp_file(,"MYIP-")  
     system_exec(sprintf(`ifconfig | grep "inet addr:" > %s`,{tmp}))  
     results = trim(read_file(tmp))  
     results = split(results," ")  
     delete_file(tmp)  
   --display(results)  
     for i = 1 to length(results) do   
          if match("inet addr:",results[i]) = 1 then  
               addr = split(results[i],':')  
               addr = addr[2]  
               if not equal("127.0.0.1",addr) then  
                    return addr  
               end if  
          end if  
     end for  
     return "127.0.0.1"  
end ifdef 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu