* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "build.h"
#include "cron.h"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#if !defined(PLATFORM_FREEBSD)
#include <alloca.h>
+#endif
/*
* Parse value
#include <fcntl.h>
#include <poll.h>
+#if defined(PLATFORM_FREEBSD)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
+
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <arpa/inet.h>
#include <openssl/sha.h>
+#if defined(PLATFORM_FREEBSD)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
+
static void satip_device_discovery_start( void );
/*
#include "http.h"
#include "satip_private.h"
+#if defined(PLATFORM_FREEBSD)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
+
static int
satip_frontend_tune1
( satip_frontend_t *lfe, mpegts_mux_instance_t *mmi );
#if defined(PLATFORM_DARWIN)
#define fdatasync(fd) fcntl(fd, F_FULLFSYNC)
+#elif defined(PLATFORM_FREEBSD)
+#define fdatasync(fd) fsync(fd)
#endif
/**
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "tvheadend.h"
+#include "tvhpoll.h"
+#include "upnp.h"
+
#include <pthread.h>
#include <assert.h>
#include <stdio.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
-#include "tvheadend.h"
-#include "tvhpoll.h"
-#include "upnp.h"
+#if defined(PLATFORM_FREEBSD)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
int upnp_running;
static pthread_t upnp_tid;