lnobad / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

(Android) Exception in NetworkInterfaces #165

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. NetworkInterface.GetAllNetworkInterfaces();

What is the expected output? What do you see instead?

System.EntryPointNotFoundException: getifaddrs

What version of the product are you using? On what operating system?

Lidgren Latest Rev
Unity3D 3.4.2 
Android 4.2.2

Please provide any additional information below.

Is there any workaround for this? 

Original issue reported on code.google.com by fabiodsc...@gmail.com on 15 May 2014 at 1:12

GoogleCodeExporter commented 9 years ago
It seems like that the method getifaddrs doesn't exist in Android 4.0+.
Any help would be appreciated.

Original comment by fabiodsc...@gmail.com on 15 May 2014 at 1:14

GoogleCodeExporter commented 9 years ago
Try adding __ANDROID__ as conditional compilation symbols for your project; 
it's checked in various files in Lidgren.

Original comment by lidg...@gmail.com on 15 May 2014 at 1:31

GoogleCodeExporter commented 9 years ago
Still no luck, adding __ANDROID__ as conditional in Lidgren Project prevents me 
from compiling it, and in my unity project as no effect at all.

Original comment by fabiodsc...@gmail.com on 15 May 2014 at 2:09