mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
android: fix various compilation errors
This commit is contained in:
parent
002b373361
commit
e301e5fe5e
@ -48,6 +48,11 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(__ANDROID__) && !defined(HAVE_LOCKF)
|
||||
// Needed for flock.
|
||||
#include <sys/file.h>
|
||||
#endif
|
||||
|
||||
TextEncoder::Encoding Filename::_filesystem_encoding = TextEncoder::E_utf8;
|
||||
|
||||
TVOLATILE AtomicAdjust::Pointer Filename::_home_directory;
|
||||
|
@ -23,6 +23,11 @@
|
||||
#include <errno.h>
|
||||
#endif // _WIN32
|
||||
|
||||
#if defined(__ANDROID__) && !defined(HAVE_LOCKF)
|
||||
// Needed for flock.
|
||||
#include <sys/file.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@
|
||||
#elif defined(WIN32_VC) || defined(WIN64_VC)
|
||||
#include <winsock2.h> // For gethostname()
|
||||
#include <Iphlpapi.h> // For GetAdaptersAddresses()
|
||||
#elif defined(ANDROID)
|
||||
#elif defined(__ANDROID__)
|
||||
#include <net/if.h>
|
||||
#else
|
||||
#include <net/if.h>
|
||||
@ -538,7 +538,7 @@ scan_interfaces() {
|
||||
PANDA_FREE_ARRAY(addresses);
|
||||
}
|
||||
|
||||
#elif defined(ANDROID)
|
||||
#elif defined(__ANDROID__)
|
||||
// TODO: implementation using netlink_socket?
|
||||
|
||||
#else // WIN32_VC
|
||||
|
Loading…
x
Reference in New Issue
Block a user