OpenSolaris + SunPro C++ compile fix

This commit is contained in:
Marian Krivos
2009-02-24 22:00:36 +00:00
parent ef850957c5
commit b99f4b6d1f
10 changed files with 35 additions and 17 deletions

View File

@@ -34,6 +34,10 @@
//
#if defined(sun) || defined(__sun) || defined(__sun__)
#define __EXTENSIONS__
#endif
#include "Poco/Net/MulticastSocket.h"
#include "Poco/Net/NetException.h"
#include <cstring>

View File

@@ -33,6 +33,10 @@
// DEALINGS IN THE SOFTWARE.
//
#if defined(sun) || defined(__sun) || defined(__sun__)
#define __EXTENSIONS__
#include <net/if.h>
#endif
#include "Poco/Net/NetworkInterface.h"
#include "Poco/Net/DatagramSocket.h"
@@ -44,7 +48,6 @@
#endif
#include <cstring>
using Poco::NumberFormatter;
using Poco::FastMutex;

View File

@@ -43,7 +43,10 @@
#if defined(POCO_HAVE_FD_POLL)
#include <poll.h>
#endif
#if defined(sun) || defined(__sun) || defined(__sun__)
#include <unistd.h>
#include <stropts.h>
#endif
using Poco::IOException;
using Poco::TimeoutException;