Cygwin fixes: build with mingw 3.4.4 and 4.3.2

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@950 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2009-01-26 19:45:54 +00:00
parent 6968fcd422
commit 797f97f415
3 changed files with 8 additions and 1 deletions

View file

@ -37,7 +37,7 @@
#define D( x ) ;
#endif
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__CYGWIN__)
#include <time.h>
#endif

View file

@ -20,6 +20,8 @@
// ----------------------------------------------------------------------------
#if !defined(__CYGWIN__) || (defined(__CYGWIN__) && __GNUC__ > 3)
#include <loki/LevelMutex.h>
#include <algorithm>
@ -1148,3 +1150,7 @@ bool MultiMutexLocker::Unlock( void )
// ----------------------------------------------------------------------------
} // end namespace Loki
#endif

View file

@ -31,6 +31,7 @@ ifeq ($(OS), GNU)
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)
override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC
LDLIBS := -lpthread
else
ifeq ($(OS), HP-UX)
SHARED_LIB_BASE := libloki.so
SHARED_LIB_VERSIONED := libloki.so.$(VERSION)