Commit 1e1cf481 authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Compile fix for Solaris.

parent 4b774ca8
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
* Copyright 1998 Ove Kven * Copyright 1998 Ove Kven
*/ */
#ifdef linux #ifndef __WINE_DOSEXE_H
#define __WINE_DOSEXE_H
#include <sys/types.h>
#include "windows.h"
#include "winnt.h"
#include "wintypes.h" #include "wintypes.h"
typedef struct _DOSTASK { typedef struct _DOSTASK {
...@@ -22,10 +26,14 @@ typedef struct _DOSTASK { ...@@ -22,10 +26,14 @@ typedef struct _DOSTASK {
pid_t task; pid_t task;
} DOSTASK, *LPDOSTASK; } DOSTASK, *LPDOSTASK;
#ifdef linux
#define MZ_SUPPORTED #define MZ_SUPPORTED
struct _NE_MODULE;
extern int MZ_InitTask( LPDOSTASK lpDosTask ); extern int MZ_InitTask( LPDOSTASK lpDosTask );
extern int MZ_InitMemory( LPDOSTASK lpDosTask, NE_MODULE *pModule ); extern int MZ_InitMemory( LPDOSTASK lpDosTask, struct _NE_MODULE *pModule );
extern void MZ_KillModule( LPDOSTASK lpDosTask ); extern void MZ_KillModule( LPDOSTASK lpDosTask );
#endif /* linux */ #endif /* linux */
...@@ -33,3 +41,5 @@ extern void MZ_KillModule( LPDOSTASK lpDosTask ); ...@@ -33,3 +41,5 @@ extern void MZ_KillModule( LPDOSTASK lpDosTask );
extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env, extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info ); LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
extern int DOSVM_Enter( PCONTEXT context ); extern int DOSVM_Enter( PCONTEXT context );
#endif /* __WINE_DOSEXE_H */
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
#ifndef __WINE_MODULE_H #ifndef __WINE_MODULE_H
#define __WINE_MODULE_H #define __WINE_MODULE_H
#include "wintypes.h" #include "dosexe.h"
#include "pe_image.h" #include "pe_image.h"
#include "wintypes.h"
struct _DOSTASK;
/* In-memory module structure. See 'Windows Internals' p. 219 */ /* In-memory module structure. See 'Windows Internals' p. 219 */
typedef struct _NE_MODULE typedef struct _NE_MODULE
...@@ -51,7 +50,7 @@ typedef struct _NE_MODULE ...@@ -51,7 +50,7 @@ typedef struct _NE_MODULE
HMODULE32 module32; /* 40 PE module handle for Win32 modules */ HMODULE32 module32; /* 40 PE module handle for Win32 modules */
HMODULE16 self; /* 44 Handle for this module */ HMODULE16 self; /* 44 Handle for this module */
WORD self_loading_sel; /* 46 Selector used for self-loading apps. */ WORD self_loading_sel; /* 46 Selector used for self-loading apps. */
struct _DOSTASK *lpDosTask; LPDOSTASK lpDosTask;
LPVOID dos_image; /* pointer to DOS memory (for DOS apps) */ LPVOID dos_image; /* pointer to DOS memory (for DOS apps) */
} NE_MODULE; } NE_MODULE;
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include "winnt.h" #include "winnt.h"
#include "msdos.h" #include "msdos.h"
#include "miscemu.h" #include "miscemu.h"
#include "debug.h"
#include "debugger.h" #include "debugger.h"
#include "debug.h"
#include "module.h" #include "module.h"
#include "task.h" #include "task.h"
#include "ldt.h" #include "ldt.h"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include "dplay.h" #include "dplay.h"
#include "thread.h" #include "thread.h"
#include <sys/queue.h>
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID))) #define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID)))
#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2) #define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
#include <ctype.h> #include <ctype.h>
#include <sys/errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment