Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FreeBSD 1/X - Fix compiler errors
  • Loading branch information
dreamcat4 committed Jul 30, 2014
1 parent 9b41652 commit 974bbcb
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/cron.c
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/httpc.c
Expand Up @@ -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>

Expand Down
5 changes: 5 additions & 0 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -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 );

/*
Expand Down
5 changes: 5 additions & 0 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -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 );
Expand Down
2 changes: 2 additions & 0 deletions src/muxer.c
Expand Up @@ -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

/**
Expand Down
11 changes: 8 additions & 3 deletions src/upnp.c
Expand Up @@ -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>
Expand All @@ -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;
Expand Down

0 comments on commit 974bbcb

Please sign in to comment.