зеркало из https://github.com/mozilla/gecko-dev.git
Bug 807492 Part 2 - Allow to build media/webrtc/signaling on BSD r=ehugg
This commit is contained in:
Родитель
3eed16be81
Коммит
2c947d6cb1
|
@ -228,6 +228,19 @@
|
|||
'cflags_mozilla': [
|
||||
],
|
||||
}],
|
||||
['os_bsd==1', {
|
||||
'include_dirs': [
|
||||
],
|
||||
'defines': [
|
||||
# avoiding pointless ifdef churn
|
||||
'SIP_OS_OSX',
|
||||
'OSX',
|
||||
'SECLIB_OPENSSL',
|
||||
],
|
||||
|
||||
'cflags_mozilla': [
|
||||
],
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
'include_dirs': [
|
||||
],
|
||||
|
@ -760,7 +773,7 @@
|
|||
],
|
||||
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
['OS=="mac" or os_bsd==1', {
|
||||
|
||||
'include_dirs': [
|
||||
],
|
||||
|
@ -801,19 +814,34 @@
|
|||
],
|
||||
|
||||
|
||||
'defines' : [
|
||||
'SIP_OS_OSX',
|
||||
'_POSIX_SOURCE',
|
||||
'CPR_MEMORY_LITTLE_ENDIAN',
|
||||
'NO_SOCKET_POLLING',
|
||||
'USE_TIMER_SELECT_BASED',
|
||||
'FULL_BUILD',
|
||||
'STUBBED_OUT',
|
||||
'USE_PRINTF',
|
||||
'_DARWIN_C_SOURCE',
|
||||
'NO_NSPR_10_SUPPORT',
|
||||
'conditions': [
|
||||
['OS=="mac"', {
|
||||
'defines' : [
|
||||
'SIP_OS_OSX',
|
||||
'_POSIX_SOURCE',
|
||||
'CPR_MEMORY_LITTLE_ENDIAN',
|
||||
'NO_SOCKET_POLLING',
|
||||
'USE_TIMER_SELECT_BASED',
|
||||
'FULL_BUILD',
|
||||
'STUBBED_OUT',
|
||||
'USE_PRINTF',
|
||||
'_DARWIN_C_SOURCE',
|
||||
'NO_NSPR_10_SUPPORT',
|
||||
],
|
||||
}],
|
||||
['os_bsd==1', {
|
||||
'defines' : [
|
||||
'SIP_OS_OSX',
|
||||
'CPR_MEMORY_LITTLE_ENDIAN',
|
||||
'NO_SOCKET_POLLING',
|
||||
'USE_TIMER_SELECT_BASED',
|
||||
'FULL_BUILD',
|
||||
'STUBBED_OUT',
|
||||
'USE_PRINTF',
|
||||
'NO_NSPR_10_SUPPORT',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
||||
'cflags_mozilla': [
|
||||
],
|
||||
}],
|
||||
|
|
|
@ -321,11 +321,15 @@ cprGetMessage (cprMsgQueue_t msgQueue, boolean waitForever, void **ppUserData)
|
|||
cpr_msgq_node_t *node;
|
||||
struct timespec timeout;
|
||||
struct timeval tv;
|
||||
#ifndef __APPLE__
|
||||
struct timezone tz;
|
||||
#else
|
||||
// On the iPhone, there is a DarwinAlias problem with "timezone"
|
||||
struct _timezone {
|
||||
int tz_minuteswest; /* of Greenwich */
|
||||
int tz_dsttime; /* type of dst correction to apply */
|
||||
} tz;
|
||||
#endif
|
||||
|
||||
/* Initialize ppUserData */
|
||||
if (ppUserData) {
|
||||
|
|
|
@ -83,7 +83,7 @@ LIBS += \
|
|||
$(NULL)
|
||||
endif
|
||||
|
||||
ifeq ($(OS_TARGET),Linux)
|
||||
ifneq (,$(filter Linux DragonFly FreeBSD NetBSD OpenBSD,$(OS_TARGET)))
|
||||
LIBS += \
|
||||
$(MOZ_CAIRO_OSLIBS) \
|
||||
$(NULL)
|
||||
|
|
Загрузка…
Ссылка в новой задаче