mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
GH #341: Compiling poco-1.5.2 for Cygwin
This commit is contained in:
parent
794ee36b3d
commit
ba3a8b08c5
@ -59,6 +59,7 @@ Release 1.5.3 (2014-05-xx)
|
||||
- fixed GH #314: JSON parsing bug
|
||||
- added GH #313: MetaColumn additions for Data::ODBC and Data::SQLite
|
||||
- fixed GH #346: Make Poco::Data::Date and Poco::Data::Time compare functions const.
|
||||
- fixed GH #341: Compiling poco-1.5.2 for Cygwin
|
||||
|
||||
Release 1.5.2 (2013-09-16)
|
||||
==========================
|
||||
|
@ -37,21 +37,14 @@ ifeq ($(POCO_CONFIG),MinGW)
|
||||
# -DNOMINMAX : MIN/MAX macros defined in windows conflict with libstdc++
|
||||
CXXFLAGS += -DODBCVER=0x0300 -DNOMINMAX
|
||||
|
||||
##
|
||||
## Cygwin
|
||||
##
|
||||
else ifeq ($(POCO_CONFIG),CYGWIN)
|
||||
# -DODBCVER=0x0300: SQLHandle declaration issue
|
||||
# -DNOMINMAX : MIN/MAX macros defined in windows conflict with libstdc++
|
||||
CXXFLAGS += -DODBCVER=0x0300 -DNOMINMAX
|
||||
# CYGWIN platform has its own ODBC library in /lib/w32api
|
||||
SYSLIBS += -L/lib/w32api -lodbc32 -lodbccp32
|
||||
|
||||
##
|
||||
## unixODBC
|
||||
##
|
||||
else ifeq (0, $(shell test -e $(POCO_ODBC_LIB)/libodbc$(LIBLINKEXT); echo $$?))
|
||||
SYSLIBS += -lodbc -lodbcinst
|
||||
SYSLIBS += -lodbc
|
||||
ifeq (0, $(shell test -e $(POCO_ODBC_LIB)/libodbcinst$(LIBLINKEXT); echo $$?))
|
||||
SYSLIBS += -lodbcinst
|
||||
endif
|
||||
COMMONFLAGS += -DPOCO_UNIXODBC
|
||||
|
||||
##
|
||||
|
@ -46,7 +46,9 @@ using Poco::Net::Socket;
|
||||
using Poco::Net::DatagramSocket;
|
||||
using Poco::Net::SocketAddress;
|
||||
using Poco::Net::IPAddress;
|
||||
using Poco::Net::NetworkInterface;
|
||||
#ifdef POCO_NET_HAS_INTERFACE
|
||||
using Poco::Net::NetworkInterface;
|
||||
#endif
|
||||
using Poco::Timespan;
|
||||
using Poco::Stopwatch;
|
||||
using Poco::TimeoutException;
|
||||
@ -101,11 +103,11 @@ void DatagramSocketTest::testBroadcast()
|
||||
UDPEchoServer echoServer;
|
||||
DatagramSocket ss(IPAddress::IPv4);
|
||||
|
||||
#if (POCO_OS != POCO_OS_FREE_BSD)
|
||||
SocketAddress sa("255.255.255.255", echoServer.port());
|
||||
#else
|
||||
#if defined(POCO_NET_HAS_INTERFACE) && (POCO_OS == POCO_OS_FREE_BSD)
|
||||
NetworkInterface ni = NetworkInterface::forName("em0");
|
||||
SocketAddress sa(ni.broadcastAddress(1), echoServer.port());
|
||||
#else
|
||||
SocketAddress sa("255.255.255.255", echoServer.port());
|
||||
#endif
|
||||
// not all socket implementations fail if broadcast option is not set
|
||||
/*
|
||||
|
@ -9,15 +9,11 @@
|
||||
#
|
||||
# Target names
|
||||
#
|
||||
ifeq ($(OSNAME),CYGWIN)
|
||||
SHL_EXT = $(SHAREDLIBLINKEXT)
|
||||
else
|
||||
ifdef target_version
|
||||
SHL_EXT = $(SHAREDLIBEXT)
|
||||
else
|
||||
SHL_EXT = $(SHAREDLIBLINKEXT)
|
||||
endif
|
||||
endif
|
||||
|
||||
LIB_RELEASE_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)$(OSARCH_POSTFIX).a
|
||||
LIB_DEBUG_STATIC = $(LIBPATH)/$(LIBPREFIX)$(target)d$(OSARCH_POSTFIX).a
|
||||
|
Loading…
Reference in New Issue
Block a user