Skip to content
Browse files

Add FreeBSD defines to the Socket code

  • Loading branch information...
1 parent 7a6f136 commit 72fe3d7094e0214b287f9c6f5def298a097bc2c5 @decke decke committed Jan 16, 2014
View
4 addons/pvr.mediaportal.tvserver/src/Socket.cpp
@@ -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
View
2 addons/pvr.mediaportal.tvserver/src/Socket.h
@@ -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
View
4 addons/pvr.nextpvr/src/Socket.cpp
@@ -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
View
2 addons/pvr.nextpvr/src/Socket.h
@@ -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
View
4 addons/pvr.wmc/src/Socket.cpp
@@ -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)
View
2 addons/pvr.wmc/src/Socket.h
@@ -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.
Something went wrong with that request. Please try again.