summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--logdefs.c6
-rw-r--r--xine_frontend_lirc.c5
-rw-r--r--xine_input_vdr.c10
-rw-r--r--xine_input_vdr_net.h4
5 files changed, 15 insertions, 11 deletions
diff --git a/HISTORY b/HISTORY
index 309ab0ce..a075e3c0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3,6 +3,7 @@ VDR Plugin 'xineliboutput' Revision History
????-??-??: Version 1.1.0
+- Added FreeBSD compability (Thanks to Juergen Lock)
- Added support for yaepg(hd) video window with HUD OSD (Thanks to grueni75)
- Fixed lot of compiler warnings (Thanks to Winfried Koehler)
- Fixed mixer volume being reset at vdr-sxfe start when using software volume control
diff --git a/logdefs.c b/logdefs.c
index 063e1924..17f08357 100644
--- a/logdefs.c
+++ b/logdefs.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: logdefs.c,v 1.2 2008-11-04 12:29:36 phintuka Exp $
+ * $Id: logdefs.c,v 1.3 2010-07-19 13:39:24 phintuka Exp $
*
*/
@@ -15,7 +15,7 @@
#include <sys/syscall.h>
#include <stdarg.h>
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
# include <linux/unistd.h> /* syscall(__NR_gettid) */
#endif
@@ -31,7 +31,7 @@ void x_syslog(int level, const char *module, const char *fmt, ...)
vsnprintf(buf, 512, fmt, argp);
buf[sizeof(buf)-1] = 0;
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
if(!LogToSysLog) {
fprintf(stderr,"[%ld] %s%s\n", (long int)syscall(__NR_gettid), module, buf);
} else {
diff --git a/xine_frontend_lirc.c b/xine_frontend_lirc.c
index e23584d3..abf9b628 100644
--- a/xine_frontend_lirc.c
+++ b/xine_frontend_lirc.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend_lirc.c,v 1.24 2010-01-03 09:54:39 phintuka Exp $
+ * $Id: xine_frontend_lirc.c,v 1.25 2010-07-19 13:39:24 phintuka Exp $
*
*/
/*
@@ -25,6 +25,9 @@
#include <stdint.h>
#include <stdio.h>
+#ifdef __FreeBSD__
+#include <string.h>
+#endif
#include <unistd.h>
#include <pthread.h>
#include <netinet/in.h>
diff --git a/xine_input_vdr.c b/xine_input_vdr.c
index 09ffa5c8..a7953737 100644
--- a/xine_input_vdr.c
+++ b/xine_input_vdr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_input_vdr.c,v 1.322 2010-05-29 22:50:37 phintuka Exp $
+ * $Id: xine_input_vdr.c,v 1.323 2010-07-19 13:39:24 phintuka Exp $
*
*/
@@ -30,7 +30,7 @@
#include <sys/stat.h>
#include <syslog.h>
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
# define DVD_STREAMING_SPEED
#endif
@@ -130,11 +130,11 @@ typedef struct {
/******************************* LOG ***********************************/
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
# include <linux/unistd.h> /* syscall(__NR_gettid) */
#endif
-static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.322 2010-05-29 22:50:37 phintuka Exp $";
+static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.323 2010-07-19 13:39:24 phintuka Exp $";
static const char log_module_input_vdr[] = "[input_vdr] ";
#define LOG_MODULENAME log_module_input_vdr
#define SysLogLevel iSysLogLevel
@@ -152,7 +152,7 @@ void x_syslog(int level, const char *module, const char *fmt, ...)
va_start(argp, fmt);
vsnprintf(buf, sizeof(buf), fmt, argp);
buf[sizeof(buf)-1] = 0;
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
if(!bLogToSysLog) {
fprintf(stderr, "%s%s\n", module, buf);
} else {
diff --git a/xine_input_vdr_net.h b/xine_input_vdr_net.h
index 2c733e8d..243a8c28 100644
--- a/xine_input_vdr_net.h
+++ b/xine_input_vdr_net.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_input_vdr_net.h,v 1.15 2010-03-13 11:33:36 phintuka Exp $
+ * $Id: xine_input_vdr_net.h,v 1.16 2010-07-19 13:39:24 phintuka Exp $
*
*/
@@ -12,7 +12,7 @@
#define __XINE_INPUT_VDR_NET_H_
#include <arpa/inet.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
# include <machine/endian.h>
#else
# include <endian.h>