diff --git a/loader/ldt_keeper.h b/loader/ldt_keeper.h index 9fff8de0c1..cdcccc8055 100644 --- a/loader/ldt_keeper.h +++ b/loader/ldt_keeper.h @@ -1,6 +1,8 @@ #ifndef MPLAYER_LDT_KEEPER_H #define MPLAYER_LDT_KEEPER_H +extern void *fs_seg; + typedef struct { void* fs_seg; char* prev_struct; diff --git a/loader/win32.c b/loader/win32.c index c8242563b1..cd2063dd9c 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -49,6 +49,7 @@ for DLL to know too much about its environment. #include "loader.h" #include "com.h" #include "ext.h" +#include "ldt_keeper.h" #include "path.h" #include @@ -1511,8 +1512,6 @@ static int WINAPI expGetCurrentProcess(void) // this version is required for Quicktime codecs (.qtx/.qts) to work. // (they assume some pointers at FS: segment) -extern void* fs_seg; - //static int tls_count; static int tls_use_map[64]; static int WINAPI expTlsAlloc(void)