diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/include/VBoxDTraceLibCWrappers.h vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/include/VBoxDTraceLibCWrappers.h
old
|
new
|
|
27 | 27 | #ifdef RT_OS_WINDOWS |
28 | 28 | # include <process.h> |
29 | 29 | #else |
| 30 | # ifdef RT_OS_OS2 |
| 31 | # include <sys/time.h> |
| 32 | # endif |
30 | 33 | # include <sys/types.h> |
31 | 34 | # include <limits.h> /* Workaround for syslimit.h bug in gcc 4.8.3 on gentoo. */ |
32 | 35 | # ifndef RT_OS_SOLARIS |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
old
|
new
|
|
51 | 51 | #ifndef RT_OS_SOLARIS |
52 | 52 | typedef int64_t longlong_t; |
53 | 53 | typedef uint64_t u_longlong_t; |
| 54 | #if !defined(RT_OS_OS2) || defined(IN_RING0) |
54 | 55 | typedef uint64_t hrtime_t; |
55 | 56 | typedef uint32_t id_t; |
| 57 | #endif |
56 | 58 | typedef uint32_t zoneid_t; |
57 | 59 | #endif |
58 | 60 | #if !defined(NGREG) || !defined(RT_OS_LINUX) |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/Makefile.kmk vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/Makefile.kmk
old
|
new
|
|
92 | 92 | DLLS += VBoxDTraceMain |
93 | 93 | VBoxDTraceMain_TEMPLATE = VBoxR3ExtPackDTrace |
94 | 94 | VBoxDTraceMain_SOURCES = VBoxDTraceMain.cpp |
| 95 | ifeq ($(KBUILD_TARGET),os2) |
| 96 | VBoxDTraceMain_NAME = VBoxDTM |
| 97 | endif |
95 | 98 | $(call VBOX_SET_VER_INFO_DLL,VBoxDTraceMain,VBoxDTrace Main module) |
96 | 99 | |
97 | 100 | |
… |
… |
|
108 | 111 | ifn1of ($(KBUILD_TARGET), win) |
109 | 112 | VBoxDTraceCmd_CFLAGS = -Wno-format $(VBOX_GCC_Wno-overlength-strings) -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow |
110 | 113 | endif |
| 114 | if1of ($(KBUILD_TARGET),os2) |
| 115 | VBoxDTraceCmd_NAME = VBoxDTC |
| 116 | endif |
111 | 117 | VBoxDTraceCmd_INCS = \ |
112 | 118 | include \ |
113 | 119 | $(VBOXDT_PATH_UTS)/common \ |
… |
… |
|
239 | 245 | ifeq ($(VBOX_LDR_FMT),elf) |
240 | 246 | VBoxDTraceR0_LDFLAGS = -e ModuleInit |
241 | 247 | endif |
| 248 | if1of ($(KBUILD_TARGET),os2) |
| 249 | VBoxDTraceR0_NAME = VBoxDTR0 |
| 250 | endif |
242 | 251 | VBoxDTraceR0_INCS = \ |
243 | 252 | include \ |
244 | 253 | $(VBOXDT_PATH_UTS)/common |
… |
… |
|
299 | 308 | VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,linux.x86,bin,so) |
300 | 309 | endif |
301 | 310 | if1of (os2.x86, $(VBOX_WITH_EXTPACK_OS_ARCHS)) |
302 | | VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,os2.x86,bin,so) |
| 311 | VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,os2.x86,bin,dll) |
303 | 312 | endif |
304 | 313 | if1of (solaris.amd64, $(VBOX_WITH_EXTPACK_OS_ARCHS)) |
305 | 314 | VBOX_VBOXDTRACE_FILES += $(call VBOX_VBOXDTRACE_FILES_MACRO,solaris.amd64,bin,so) |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c
old
|
new
|
|
103 | 103 | # else |
104 | 104 | # include <unistd.h> |
105 | 105 | # endif |
106 | | # if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN) |
| 106 | # if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN) || defined(RT_OS_OS2) |
107 | 107 | # ifdef _MSC_VER |
108 | 108 | # define ftruncate64 _chsize |
109 | 109 | # else |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_open.c vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_open.c
old
|
new
|
|
47 | 47 | |
48 | 48 | #else /* VBOX */ |
49 | 49 | # ifndef _MSC_VER |
| 50 | # ifdef RT_OS_OS2 |
| 51 | # include <sys/types.h> |
| 52 | # endif |
50 | 53 | # include <sys/resource.h> |
51 | 54 | # include <unistd.h> |
52 | 55 | # else |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c vbox-trunk\src\VBox\ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
old
|
new
|
|
42 | 42 | |
43 | 43 | #else /* VBOX */ |
44 | 44 | # ifndef _MSC_VER |
| 45 | # ifdef RT_OS_OS2 |
| 46 | # include <sys/types.h> |
| 47 | # endif |
45 | 48 | # include <sys/resource.h> |
46 | 49 | # include <unistd.h> |
47 | 50 | # include <signal.h> |
48 | | # if defined(RT_OS_DARWIN) |
| 51 | # if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) |
49 | 52 | # define open64 open |
50 | 53 | # endif |
51 | 54 | # else |
diff -urN vbox-trunk-bk\src\VBox\ExtPacks/VNC/Makefile.kmk vbox-trunk\src\VBox\ExtPacks/VNC/Makefile.kmk
old
|
new
|
|
51 | 51 | VBoxVNCMain_TEMPLATE = VBoxR3ExtPackVNC |
52 | 52 | VBoxVNCMain_SOURCES = VBoxVNCMain.cpp |
53 | 53 | VBoxVNCMain_DEFS = |
| 54 | VBoxVNCMain_NAME.os2 = VBoxVNCM |
54 | 55 | |
55 | 56 | # |
56 | 57 | # VBoxVNC - The VNC VRDE module. |
… |
… |
|
60 | 61 | VBoxVNC_SOURCES = VBoxVNC.cpp |
61 | 62 | # NOTE: vncserver is covered by GPL, so the extpack must be GPL, too. |
62 | 63 | VBoxVNC_LIBS = vncserver |
| 64 | VBoxVNC_LIBS.os2 = vncserver socket pthread z png jpeg ssl crypto socket gcc492.dll |
63 | 65 | VBoxVNC_DEFS = |
| 66 | VBoxVNC_INCS.os2 = /@unixroot/usr/include \ |
| 67 | /@unixroot/usr/local/include |
| 68 | VBoxVNC_LIBPATH.os2 = /@unixroot/usr/lib \ |
| 69 | /@unixroot/usr/local/lib |
| 70 | VBoxVNC_NAME.os2 = VBoxVNC |
64 | 71 | |
65 | 72 | # |
66 | 73 | # Install the description. |