Compile fix for Solaris.

This commit is contained in:
Patrik Stridvall 1998-10-17 12:56:00 +00:00 committed by Alexandre Julliard
parent 4b774ca8e1
commit 1e1cf48107
5 changed files with 17 additions and 9 deletions

View File

@ -4,8 +4,12 @@
* Copyright 1998 Ove Kåven
*/
#ifdef linux
#ifndef __WINE_DOSEXE_H
#define __WINE_DOSEXE_H
#include <sys/types.h>
#include "windows.h"
#include "winnt.h"
#include "wintypes.h"
typedef struct _DOSTASK {
@ -22,10 +26,14 @@ typedef struct _DOSTASK {
pid_t task;
} DOSTASK, *LPDOSTASK;
#ifdef linux
#define MZ_SUPPORTED
struct _NE_MODULE;
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 );
#endif /* linux */
@ -33,3 +41,5 @@ extern void MZ_KillModule( LPDOSTASK lpDosTask );
extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
extern int DOSVM_Enter( PCONTEXT context );
#endif /* __WINE_DOSEXE_H */

View File

@ -7,10 +7,9 @@
#ifndef __WINE_MODULE_H
#define __WINE_MODULE_H
#include "wintypes.h"
#include "dosexe.h"
#include "pe_image.h"
struct _DOSTASK;
#include "wintypes.h"
/* In-memory module structure. See 'Windows Internals' p. 219 */
typedef struct _NE_MODULE
@ -51,7 +50,7 @@ typedef struct _NE_MODULE
HMODULE32 module32; /* 40 PE module handle for Win32 modules */
HMODULE16 self; /* 44 Handle for this module */
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) */
} NE_MODULE;

View File

@ -20,8 +20,8 @@
#include "winnt.h"
#include "msdos.h"
#include "miscemu.h"
#include "debug.h"
#include "debugger.h"
#include "debug.h"
#include "module.h"
#include "task.h"
#include "ldt.h"

View File

@ -15,7 +15,6 @@
#include "dplay.h"
#include "thread.h"
#include <sys/queue.h>
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID)))
#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2)

View File

@ -5,7 +5,7 @@
*/
#include <ctype.h>
#include <sys/errno.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>