Added support for f_yieldCPU() on Unix platforms.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@638 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-06 20:47:42 +00:00
parent 25871146ba
commit 3dc23e1bcd
3 changed files with 3 additions and 1 deletions

View File

@@ -837,7 +837,7 @@ ifdef unix_target
compiler = CC
exe_linker = CC
shared_linker = ld
compiler_version := $(shell $(compiler) -V)
compiler_version := $(shell $(compiler) -V 2>&1)
ifneq (,$(findstring Sun C++,$(compiler_version)))
sun_studio_compiler = yes
endif

View File

@@ -145,6 +145,7 @@
#include <unistd.h>
#include <utime.h>
#include <aio.h>
#include <sched.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <sys/mman.h>

View File

@@ -1735,6 +1735,7 @@ Desc:
****************************************************************************/
void FLMAPI f_yieldCPU( void)
{
sched_yield();
}
/**********************************************************************