Permalink
Browse files

Add FreeBSD defines to the Socket code

  • Loading branch information...
decke committed Jan 16, 2014
1 parent 7a6f136 commit 72fe3d7094e0214b287f9c6f5def298a097bc2c5
@@ -608,7 +608,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -720,6 +720,6 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
} //namespace MPTV
@@ -84,7 +84,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif
@@ -658,7 +658,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -767,6 +767,6 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
} //namespace NextPVR
@@ -85,7 +85,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif
@@ -442,7 +442,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -554,7 +554,7 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
void Socket::SetServerName(CStdString strServerName)
@@ -86,7 +86,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif

0 comments on commit 72fe3d7

Please sign in to comment.