Ticket #1: xpcom.diff
File xpcom.diff, 21.3 KB (added by , 9 years ago) |
---|
-
\src\libs\xpcom18a4/Config.kmk
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/Config.kmk vbox-trunk\src\libs\xpcom18a4/Config.kmk
old new 37 37 TEMPLATE_XPCOM_ASFLAGS.x86 = -m32 38 38 TEMPLATE_XPCOM_ASFLAGS.amd64 = -m64 39 39 TEMPLATE_XPCOM_ASDEFS = $(NO_SUCH_VARIABLE) 40 TEMPLATE_XPCOM_CXXFLAGS = -g -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor \ 40 # -ansi 41 TEMPLATE_XPCOM_CXXFLAGS = -g -pipe -Wall -Wno-unused -Wno-non-virtual-dtor \ 41 42 $(VBOX_GCC_Wno-invalid-offsetof) -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy \ 42 43 $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \ 43 44 $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_Wno-delete-non-virtual-dtor) -
\src\libs\xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp vbox-trunk\src\libs\xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp
old new 1290 1290 if (PR_ProcessAttrSetInheritableFD(attr, writable, IPC_STARTUP_PIPE_NAME) != PR_SUCCESS) 1291 1291 goto end; 1292 1292 1293 #ifdef XP_OS2 1294 devNull = PR_Open("/dev/nul", PR_RDWR, 0); 1295 #else 1293 1296 devNull = PR_Open("/dev/null", PR_RDWR, 0); 1297 #endif 1294 1298 if (!devNull) 1295 1299 goto end; 1296 1300 -
\src\libs\xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp vbox-trunk\src\libs\xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp
old new 549 549 // redirect all standard file descriptors to /dev/null for 550 550 // proper daemonizing 551 551 PR_Close(PR_STDIN); 552 #ifndef XP_OS2 552 553 PR_Open("/dev/null", O_RDONLY, 0); 553 554 PR_Close(PR_STDOUT); 554 555 PR_Open("/dev/null", O_WRONLY, 0); 555 556 PR_Close(PR_STDERR); 556 557 PR_Open("/dev/null", O_WRONLY, 0); 558 #else 559 PR_Open("/dev/nul", O_RDONLY, 0); 560 PR_Close(PR_STDOUT); 561 PR_Open("/dev/nul", O_WRONLY, 0); 562 PR_Close(PR_STDERR); 563 PR_Open("/dev/nul", O_WRONLY, 0); 564 #endif 565 557 566 #endif 558 567 559 568 IPC_NotifyParent(); -
\src\libs\xpcom18a4/Makefile.kmk
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/Makefile.kmk vbox-trunk\src\libs\xpcom18a4/Makefile.kmk
old new 819 819 VBox-xpcom-threads_TEMPLATE = XPCOM 820 820 VBox-xpcom-threads_INSTTYPE = none 821 821 VBox-xpcom-threads_DEFS = _IMPL_NS_COM 822 VBox-xpcom-threads_DEFS.os2 = # OS2_PM_EVENT_QUEUES 822 823 VBox-xpcom-threads_SOURCES = \ 823 824 xpcom/threads/plevent.c \ 824 825 xpcom/threads/nsAutoLock.cpp \ -
\src\libs\xpcom18a4/nsprpub/pr/include/md/_os2_errors.h
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/nsprpub/pr/include/md/_os2_errors.h vbox-trunk\src\libs\xpcom18a4/nsprpub/pr/include/md/_os2_errors.h
old new 109 109 NSPR_API(void) _MD_os2_map_sendto_error(PRInt32 err); 110 110 #define _PR_MD_MAP_SENDTO_ERROR _MD_os2_map_sendto_error 111 111 112 NSPR_API(void) _MD_os2_map_writev_error( int err);112 NSPR_API(void) _MD_os2_map_writev_error(PRInt32 err); // int 113 113 #define _PR_MD_MAP_WRITEV_ERROR _MD_os2_map_writev_error 114 114 115 115 NSPR_API(void) _MD_os2_map_accept_error(PRInt32 err); … … 131 131 #define _PR_MD_MAP_SHUTDOWN_ERROR _MD_os2_map_shutdown_error 132 132 133 133 #ifndef XP_OS2_VACPP 134 NSPR_API(void) _MD_os2_map_socketpair_error( int err);134 NSPR_API(void) _MD_os2_map_socketpair_error(PRInt32 err); // int 135 135 #define _PR_MD_MAP_SOCKETPAIR_ERROR _MD_os2_map_socketpair_error 136 136 #endif 137 137 … … 156 156 NSPR_API(void) _MD_os2_map_select_error(PRInt32 err); 157 157 #define _PR_MD_MAP_SELECT_ERROR _MD_os2_map_select_error 158 158 159 NSPR_API(void) _MD_os2_map_lockf_error( int err);159 NSPR_API(void) _MD_os2_map_lockf_error(PRInt32 err); // int 160 160 #define _PR_MD_MAP_LOCKF_ERROR _MD_os2_map_lockf_error 161 161 162 162 #endif /* nspr_os2_errors_h___ */ -
\src\libs\xpcom18a4/nsprpub/pr/src/md/os2/os2sock.c
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/nsprpub/pr/src/md/os2/os2sock.c vbox-trunk\src\libs\xpcom18a4/nsprpub/pr/src/md/os2/os2sock.c
old new 639 639 { 640 640 PRInt32 rv, err; 641 641 642 rv = socketpair(af, type, flags, osfd);642 rv = socketpair(af, type, flags, (int *)osfd); 643 643 if (rv < 0) { 644 644 err = _MD_ERRNO(); 645 645 _PR_MD_MAP_SOCKETPAIR_ERROR(err); -
\src\libs\xpcom18a4/nsprpub/pr/src/misc/prinit.c
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/nsprpub/pr/src/misc/prinit.c vbox-trunk\src\libs\xpcom18a4/nsprpub/pr/src/misc/prinit.c
old new 748 748 #ifndef _PR_MD_CREATE_PROCESS_DETACHED 749 749 PRProcess *process; 750 750 PRStatus rv; 751 s 751 752 752 #ifdef XP_OS2 753 753 process = _PR_CreateOS2ProcessEx(path, argv, envp, attr, PR_TRUE); 754 754 #else -
\src\libs\xpcom18a4/python/Makefile.kmk
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/python/Makefile.kmk vbox-trunk\src\libs\xpcom18a4/python/Makefile.kmk
old new 50 50 endif 51 51 52 52 else 53 # Use the script. 54 $(eval $(subst |,$(NL),$(shell $(VBOX_BLD_PYTHON) \ 55 $(PATH_SUB_CURRENT)/gen_python_deps.py \ 56 $(KBUILD_TARGET) \ 57 $(KBUILD_TARGET_ARCH) \ 58 $(VBOX_MULTIPYTHON) ))) 53 ifeq ($(KBUILD_TARGET),os2) 54 ifneq ($(VBOX_PATH_PYTHON_INC),) 55 VBOX_PYTHON27_INC = $(VBOX_PATH_PYTHON_INC) 56 VBOX_PYTHON27_LIB = $(VBOX_LIB_PYTHON) 57 endif 58 else 59 # Use the script. 60 $(eval $(subst |,$(NL),$(shell $(VBOX_BLD_PYTHON) \ 61 $(PATH_SUB_CURRENT)/gen_python_deps.py \ 62 $(KBUILD_TARGET) \ 63 $(KBUILD_TARGET_ARCH) \ 64 $(VBOX_MULTIPYTHON) ))) 65 endif 59 66 endif 60 67 61 68 ifndef VBOX_ONLY_SDK … … 66 73 VBoxPythonBase_TEMPLATE = XPCOM 67 74 VBoxPythonBase_CXXFLAGS = -Wno-write-strings 68 75 VBoxPythonBase_DLLSUFF.darwin = .so 76 VBoxPythonBase_DLLSUFF.os2 = .dll 69 77 VBoxPythonBase_DEFS = \ 70 78 _IMPL_NS_COM \ 71 79 _IMPL_NS_BASE \ … … 102 110 src/TypeObject.cpp \ 103 111 src/VariantUtils.cpp 104 112 VBoxPythonBase_LIBS = \ 105 $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \ 106 $(PATH_STAGE_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 113 $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 114 115 ifn1of ($(KBUILD_TARGET),os2) 116 VBoxPythonBase_LIBS += $(PATH_STAGE_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 117 else 118 VBoxPythonBase_LIBS += $(PATH_STAGE_BIN)/VBoxXCOM$(VBOX_SUFF_DLL) 119 endif 107 120 108 121 # 32-bit base. 109 122 VBoxPythonBase_x86_TEMPLATE = XPCOM-x86 … … 124 137 VBoxPython2_3_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin",OSX104,) 125 138 VBoxPython2_3_INCS = $(VBOX_PYTHON23_INC) 126 139 VBoxPython2_3_LIBS = $(VBOX_PYTHON23_LIB) 140 VBoxPython2_3_NAME.os2 = VBoxPy23 127 141 128 142 ifdef VBOX_WITH_32_ON_64_MAIN_API 129 143 DLLS += VBoxPython2_3_x86 … … 144 158 VBoxPython2_4_EXTENDS_BY = appending 145 159 VBoxPython2_4_INCS = $(VBOX_PYTHON24_INC) 146 160 VBoxPython2_4_LIBS = $(VBOX_PYTHON24_LIB) 161 VBoxPython2_4_NAME.os2 = VBoxPy24 147 162 148 163 ifdef VBOX_WITH_32_ON_64_MAIN_API 149 164 DLLS += VBoxPython2_4_x86 … … 163 178 VBoxPython2_5_EXTENDS_BY = appending 164 179 VBoxPython2_5_INCS = $(VBOX_PYTHON25_INC) 165 180 VBoxPython2_5_LIBS = $(VBOX_PYTHON25_LIB) 181 VBoxPython2_5_NAME.os2 = VBoxPy25 166 182 167 183 ifdef VBOX_WITH_32_ON_64_MAIN_API 168 184 DLLS += VBoxPython2_5_x86 … … 183 199 VBoxPython2_6_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.6",OSX106,) 184 200 VBoxPython2_6_INCS = $(VBOX_PYTHON26_INC) 185 201 VBoxPython2_6_LIBS = $(VBOX_PYTHON26_LIB) 202 VBoxPython2_6_NAME.os2 = VBoxPy26 186 203 187 204 ifdef VBOX_WITH_32_ON_64_MAIN_API 188 205 DLLS += VBoxPython2_6_x86 … … 204 221 VBoxPython2_7_TEMPLATE = XPCOM$(if-expr "$(KBUILD_TARGET)" == "darwin" && "$(VBOX_DEF_MACOSX_VERSION_MIN)" <= "10.7",OSX107,) 205 222 VBoxPython2_7_INCS = $(VBOX_PYTHON27_INC) 206 223 VBoxPython2_7_LIBS = $(VBOX_PYTHON27_LIB) 224 VBoxPython2_7_NAME.os2 = VBoxPy27 207 225 208 226 ifdef VBOX_WITH_32_ON_64_MAIN_API 209 227 DLLS += VBoxPython2_7_x86 -
\src\libs\xpcom18a4/python/src/module/_xpcom.cpp
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/python/src/module/_xpcom.cpp vbox-trunk\src\libs\xpcom18a4/python/src/module/_xpcom.cpp
old new 83 83 # define MANGLE_MODULE_INIT(a_Name) RT_CONCAT(a_Name, MODULE_NAME_SUFFIX) 84 84 # endif 85 85 # ifdef VBOX_PYXPCOM_VERSIONED 86 # if PY_VERSION_HEX >= 0x02080000 87 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_8") 88 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_8) 89 90 # elif PY_VERSION_HEX >= 0x02070000 91 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_7") 92 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_7) 93 94 # elif PY_VERSION_HEX >= 0x02060000 95 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_6") 96 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_6) 97 98 # elif PY_VERSION_HEX >= 0x02050000 99 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_5") 100 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_5) 101 102 # elif PY_VERSION_HEX >= 0x02040000 103 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_4") 104 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_4) 105 106 # elif PY_VERSION_HEX >= 0x02030000 107 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_3") 108 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_3) 86 # ifndef XP_OS2 87 # if PY_VERSION_HEX >= 0x02080000 88 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_8") 89 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_8) 90 91 # elif PY_VERSION_HEX >= 0x02070000 92 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_7") 93 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_7) 94 95 # elif PY_VERSION_HEX >= 0x02060000 96 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_6") 97 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_6) 98 99 # elif PY_VERSION_HEX >= 0x02050000 100 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_5") 101 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_5) 102 103 # elif PY_VERSION_HEX >= 0x02040000 104 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_4") 105 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_4) 106 107 # elif PY_VERSION_HEX >= 0x02030000 108 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython2_3") 109 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPython2_3) 110 # else 111 # error "Fix module versioning." 112 # endif 109 113 # else 110 # error "Fix module versioning." 114 # if PY_VERSION_HEX >= 0x02080000 115 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy28") 116 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy28) 117 118 # elif PY_VERSION_HEX >= 0x02070000 119 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy27") 120 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy27) 121 122 # elif PY_VERSION_HEX >= 0x02060000 123 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy26") 124 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy26) 125 126 # elif PY_VERSION_HEX >= 0x02050000 127 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy25") 128 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy25) 129 130 # elif PY_VERSION_HEX >= 0x02040000 131 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy24") 132 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy24) 133 134 # elif PY_VERSION_HEX >= 0x02030000 135 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPy23") 136 # define initVBoxPython MANGLE_MODULE_INIT(initVBoxPy23) 137 # else 138 # error "Fix module versioning." 139 # endif 111 140 # endif 112 141 # else 113 142 # define MODULE_NAME MANGLE_MODULE_NAME("VBoxPython") -
\src\libs\xpcom18a4/xpcom/threads/plevent.c
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/xpcom/threads/plevent.c vbox-trunk\src\libs\xpcom18a4/xpcom/threads/plevent.c
old new 39 39 #include <windows.h> 40 40 #endif 41 41 42 #if defined(XP_OS2) 42 #if defined(XP_OS2) && !defined(QT_CORE_LIB) 43 43 #define INCL_DOS 44 44 #define INCL_DOSERRORS 45 #if defined(OS2_PM_EVENT_QUEUES) 45 46 #define INCL_WIN 47 #endif 46 48 #include <os2.h> 49 #if defined(OS2_PM_EVENT_QUEUES) 47 50 #define DefWindowProc WinDefWindowProc 51 #endif 52 #elif defined(XP_OS2) && defined(QT_CORE_LIB) 53 #include <prtypes.h> 48 54 #endif /* XP_OS2 */ 49 55 50 56 #include "nspr.h" … … 53 59 #if !defined(WIN32) 54 60 #include <errno.h> 55 61 #include <stddef.h> 56 #if !defined(XP_OS2)62 //#if !defined(XP_OS2) 57 63 #include <unistd.h> 58 #endif /* !XP_OS2 */64 //#endif /* !XP_OS2 */ 59 65 #endif /* !Win32 */ 60 66 61 #if defined(XP_UNIX) 67 #if defined(XP_UNIX) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 62 68 /* for fcntl */ 63 69 #include <sys/types.h> 64 70 #include <fcntl.h> … … 153 159 PRPackedBool timerSet; 154 160 #endif 155 161 156 #if defined(XP_UNIX) && !defined(XP_MACOSX)162 #if ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 157 163 #if defined(VMS) 158 164 int efn; 159 165 #else … … 161 167 #endif 162 168 PLGetEventIDFunc idFunc; 163 169 void* idFuncClosure; 164 #elif defined(_WIN32) || defined(XP_OS2)170 #elif defined(_WIN32) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 165 171 HWND eventReceiverWindow; 166 172 PRBool removeMsg; 167 173 #elif defined(XP_BEOS) … … 189 195 static PRInt32 _pl_GetEventCount(PLEventQueue* self); 190 196 191 197 192 #if defined(_WIN32) || defined(XP_OS2)198 #if defined(_WIN32) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 193 199 #if defined(XP_OS2) 194 200 ULONG _pr_PostEventMsgId; 195 201 #else … … 255 261 #if defined(_WIN32) 256 262 self->timerSet = PR_FALSE; 257 263 #endif 258 #if defined(_WIN32) || defined(XP_OS2)264 #if defined(_WIN32) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 259 265 self->removeMsg = PR_TRUE; 260 266 #endif 261 267 … … 337 343 mon = self->monitor; 338 344 PR_EnterMonitor(mon); 339 345 340 #if defined(XP_UNIX) && !defined(XP_MACOSX)346 #if ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 341 347 if (self->idFunc && event) 342 348 event->id = self->idFunc(self->idFuncClosure); 343 349 #endif … … 662 668 self->handled = PR_FALSE; 663 669 self->lock = NULL; 664 670 self->condVar = NULL; 665 #if defined(XP_UNIX) && !defined(XP_MACOSX)671 #if ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 666 672 self->id = 0; 667 673 #endif 668 674 } … … 851 857 PR_LOG(event_lm, PR_LOG_DEBUG, 852 858 ("$$$ Allocated event flag %d", self->efn)); 853 859 return PR_SUCCESS; 854 #elif defined(XP_UNIX) && !defined(XP_MACOSX)860 #elif ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 855 861 int err; 856 862 int flags; 857 863 858 864 self->idFunc = 0; 859 865 self->idFuncClosure = 0; 860 866 867 #ifndef XP_OS2 861 868 err = pipe(self->eventPipe); 869 #else 870 /* use a pair for local sockets for non-blocking case, 871 * and for use with select(), instead of a pipe 872 */ 873 err = socketpair(AF_LOCAL, SOCK_STREAM, 0, (int *)self->eventPipe); 874 #endif 862 875 if (err != 0) { 863 876 return PR_FAILURE; 864 877 } … … 867 880 fcntl(self->eventPipe[1], F_SETFD, FD_CLOEXEC); 868 881 #endif 869 882 883 #ifndef XP_OS2 870 884 /* make the pipe nonblocking */ 871 885 flags = fcntl(self->eventPipe[0], F_GETFL, 0); 872 886 if (flags == -1) { … … 884 898 if (err == -1) { 885 899 goto failed; 886 900 } 901 #else 902 int val; 903 /* make the pipe nonblocking */ 904 val = 1; 905 err = os2_ioctl(self->eventPipe[0], FIONBIO, (char *)&val, sizeof(val)); 906 if (err == -1) { 907 goto failed; 908 } 909 val = 1; 910 err = os2_ioctl(self->eventPipe[1], FIONBIO, (char *)&val, sizeof(val)); 911 if (err == -1) { 912 goto failed; 913 } 914 #endif 887 915 return PR_SUCCESS; 888 916 889 917 failed: … … 929 957 ("$$$ Freeing event flag %d", self->efn)); 930 958 status = LIB$FREE_EF(&self->efn); 931 959 } 932 #elif defined(XP_UNIX) && !defined(XP_MACOSX)960 #elif ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 933 961 close(self->eventPipe[0]); 934 962 close(self->eventPipe[1]); 935 963 #elif defined(_WIN32) … … 945 973 */ 946 974 SendMessage(self->eventReceiverWindow, WM_CLOSE, 0, 0); 947 975 948 #elif defined(XP_OS2) 976 #elif defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) 949 977 WinDestroyWindow(self->eventReceiverWindow); 950 978 #elif defined(MAC_USE_CFRUNLOOPSOURCE) 951 979 … … 1191 1219 #endif 1192 1220 1193 1221 1194 #if defined(XP_OS2) 1222 #if defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) 1195 1223 static PRStatus 1196 1224 _pl_NativeNotify(PLEventQueue* self) 1197 1225 { … … 1213 1241 status = SYS$SETEF(self->efn); 1214 1242 return ($VMS_STATUS_SUCCESS(status)) ? PR_SUCCESS : PR_FAILURE; 1215 1243 }/* --- end _pl_NativeNotify() --- */ 1216 #elif defined(XP_UNIX) && !defined(XP_MACOSX)1244 #elif ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 1217 1245 1218 1246 static PRStatus 1219 1247 _pl_NativeNotify(PLEventQueue* self) … … 1289 1317 static PRStatus 1290 1318 _pl_AcknowledgeNativeNotify(PLEventQueue* self) 1291 1319 { 1292 #if defined(_WIN32) || defined(XP_OS2)1320 #if defined(_WIN32) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 1293 1321 #ifdef XP_OS2 1294 1322 QMSG aMsg; 1295 1323 #else … … 1327 1355 */ 1328 1356 sys$clref(self->efn); 1329 1357 return PR_SUCCESS; 1330 #elif defined(XP_UNIX) && !defined(XP_MACOSX)1358 #elif ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 1331 1359 1332 1360 PRInt32 count; 1333 1361 unsigned char c; … … 1360 1388 1361 1389 #if defined(VMS) 1362 1390 return -(self->efn); 1363 #elif defined(XP_UNIX) && !defined(XP_MACOSX)1391 #elif ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 1364 1392 return self->eventPipe[0]; 1365 1393 #else 1366 1394 return -1; /* other platforms don't handle this (yet) */ … … 1420 1448 #endif 1421 1449 1422 1450 1423 #if defined(_WIN32) || defined(XP_OS2)1451 #if defined(_WIN32) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 1424 1452 #ifdef XP_OS2 1425 1453 MRESULT EXPENTRY 1426 1454 _md_EventReceiverProc(HWND hwnd, ULONG uMsg, MPARAM wParam, MPARAM lParam) … … 1516 1544 } /* end _md_CreateEventQueue() */ 1517 1545 #endif /* Winxx */ 1518 1546 1519 #if defined(XP_OS2) 1547 #if defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) 1520 1548 /* 1521 1549 ** _md_CreateEventQueue() -- ModelDependent initializer 1522 1550 */ … … 1565 1593 } /* end _md_CreateEventQueue() */ 1566 1594 #endif /* XP_OS2 */ 1567 1595 1568 #if (defined(XP_UNIX) && !defined(XP_MACOSX)) || defined(XP_BEOS) 1596 #if ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || defined(XP_BEOS) || \ 1597 ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 1569 1598 /* 1570 1599 ** _md_CreateEventQueue() -- ModelDependent initializer 1571 1600 */ … … 1678 1707 1679 1708 /* extra functions for unix */ 1680 1709 1681 #if defined(XP_UNIX) && !defined(XP_MACOSX)1710 #if ( defined(XP_UNIX) && !defined(XP_MACOSX) ) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 1682 1711 1683 1712 PR_IMPLEMENT(PRInt32) 1684 1713 PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID) -
\src\libs\xpcom18a4/xpcom/threads/plevent.h
diff -urN vbox-trunk-bk\src\libs\xpcom18a4/xpcom/threads/plevent.h vbox-trunk\src\libs\xpcom18a4/xpcom/threads/plevent.h
old new 194 194 /* For HWND */ 195 195 #if defined(XP_WIN32) 196 196 #include <windef.h> 197 #elif defined(XP_OS2) 197 #elif defined(XP_OS2) && !defined(QT_CORE_LIB) 198 198 #define INCL_DOSMISC 199 199 #define INCL_DOSPROCESS 200 200 #define INCL_DOSERRORS 201 201 #include <os2.h> 202 #elif defined(XP_OS2) && defined(QT_CORE_LIB) 203 #include <prtypes.h> 202 204 #endif 203 205 204 206 #ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP … … 541 543 #ifdef PL_POST_TIMINGS 542 544 PRIntervalTime postTime; 543 545 #endif 544 #if def XP_UNIX546 #if defined(XP_UNIX) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 545 547 unsigned long id; 546 548 #endif /* XP_UNIX */ 547 549 /* other fields follow... */ … … 553 555 ** Returns the event queue associated with the main thread. 554 556 ** 555 557 */ 556 #if defined(XP_WIN) || defined(XP_OS2)558 #if defined(XP_WIN) || ( defined(XP_OS2) && defined(OS2_PM_EVENT_QUEUES) ) 557 559 /* ----------------------------------------------------------------------- 558 560 ** FUNCTION: PL_GetNativeEventReceiverWindow() 559 561 ** … … 577 579 ); 578 580 #endif /* XP_WIN || XP_OS2 */ 579 581 580 #if def XP_UNIX582 #if defined(XP_UNIX) || ( defined(XP_OS2) && !defined(OS2_PM_EVENT_QUEUES) ) 581 583 /* ----------------------------------------------------------------------- 582 584 ** FUNCTION: PL_ProcessEventsBeforeID() 583 585 **