sharedspice.c: correction for LINUX
This commit is contained in:
parent
6e8c8d303d
commit
fbab97c61b
|
|
@ -200,6 +200,8 @@ void shared_exit(int status);
|
||||||
|
|
||||||
void sighandler_sharedspice(int num);
|
void sighandler_sharedspice(int num);
|
||||||
|
|
||||||
|
void wl_delete_first(wordlist **wlstart, wordlist **wlend);
|
||||||
|
|
||||||
#if !defined(low_latency)
|
#if !defined(low_latency)
|
||||||
static char* outstorage(char*, bool);
|
static char* outstorage(char*, bool);
|
||||||
static void* printsend(void);
|
static void* printsend(void);
|
||||||
|
|
@ -620,8 +622,17 @@ bot:
|
||||||
#if !defined(low_latency)
|
#if !defined(low_latency)
|
||||||
/* If caller has sent valid address for pfcn */
|
/* If caller has sent valid address for pfcn */
|
||||||
if (!noprintfwanted)
|
if (!noprintfwanted)
|
||||||
|
#ifdef HAVE_LIBPTHREAD
|
||||||
|
pthread_create(&tid, NULL, (void * (*)(void *))printsend, (void *)NULL);
|
||||||
|
#elif defined _MSC_VER || defined __MINGW32__
|
||||||
printtid = (HANDLE)_beginthreadex(NULL, 0, (unsigned int (__stdcall *)(void *))printsend,
|
printtid = (HANDLE)_beginthreadex(NULL, 0, (unsigned int (__stdcall *)(void *))printsend,
|
||||||
(void*) NULL, 0, NULL);
|
(void*) NULL, 0, NULL);
|
||||||
|
#else
|
||||||
|
printtid = CreateThread(NULL, 0, (PTHREAD_START_ROUTINE)printsend, (void*)NULL,
|
||||||
|
0, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue