]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
FreeBSD 1/X - Fix compiler errors
authorDreamcat4 <dreamcat4@gmail.com>
Wed, 30 Jul 2014 14:46:18 +0000 (15:46 +0100)
committerDreamcat4 <dreamcat4@gmail.com>
Wed, 30 Jul 2014 14:46:18 +0000 (15:46 +0100)
src/cron.c
src/httpc.c
src/input/mpegts/satip/satip.c
src/input/mpegts/satip/satip_frontend.c
src/muxer.c
src/upnp.c

index 4290664e4ff9cc8bcc5873fdd43ef37a0e49e99b..41850dd43fb77eae4cf0a2a2e1d76bec0ef98795 100644 (file)
  *  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
index ed212a6774dbe720a0a77103814fa5b89597862d..ac88ba3c48ec35cafce4e3c87193efdfeacb3a35 100644 (file)
 #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>
 
index b3126be4894ac122bab9926a00195686da2f3520..4ad23648cd7fd4553e955f87a129670c2ed57be0 100644 (file)
 #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 );
 
 /*
index 218fadfb95d8acecf75d0759b9a3bab99c87c57c..7ed424ac5fc86107c4355718ad791d203336f7cf 100644 (file)
 #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 );
index 33399c7dd408ecfaef5f5dbf01b1ff46fe3720e3..a359c748409b1c0efca037f72af925d752a65eeb 100644 (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
 
 /**
index 8ff4e5678367b69be4593be590c9ebaeb5365972..8b3404a13b766f6bc35b15811938d6099adb0012 100644 (file)
  *  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;