FreeBSD 1/X - Fix compiler errors

This commit is contained in:
Dreamcat4 2014-07-30 15:46:18 +01:00
parent 9b4165296b
commit 974bbcb4d6
6 changed files with 29 additions and 3 deletions

View file

@ -17,13 +17,17 @@
* 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

View file

@ -28,6 +28,11 @@
#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>

View file

@ -28,6 +28,11 @@
#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 );
/*

View file

@ -24,6 +24,11 @@
#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 );

View file

@ -30,6 +30,8 @@
#if defined(PLATFORM_DARWIN)
#define fdatasync(fd) fcntl(fd, F_FULLFSYNC)
#elif defined(PLATFORM_FREEBSD)
#define fdatasync(fd) fsync(fd)
#endif
/**

View file

@ -16,6 +16,10 @@
* 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>
@ -30,9 +34,10 @@
#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;