Permalink
Commits on Jun 28, 2017
  1. Add missing include for kill(2)

    decke authored and perexg committed Jun 21, 2017
    src/spawn.c:306:7: warning: implicit declaration of function 'kill' is invalid in C99 [-Wimplicit-function-declaration]
          kill(-(s->pid), SIGKILL);
          ^
    src/spawn.c:306:23: error: use of undeclared identifier 'SIGKILL'
          kill(-(s->pid), SIGKILL);
                          ^
    src/spawn.c:655:3: warning: implicit declaration of function 'pthread_kill' is invalid in C99
          [-Wimplicit-function-declaration]
      pthread_kill(spawn_pipe_tid, SIGTERM);
      ^
    src/spawn.c:655:32: error: use of undeclared identifier 'SIGTERM'
    pthread_kill(spawn_pipe_tid, SIGTERM);
  2. Make build_timestamp generation less platform specific. This also sli…

    decke authored and perexg committed Jun 21, 2017
    …ghtly changes the format of the timezone offset.
    
    $ date -Iseconds
    2017-06-21T13:33:15+02:00
    
    $ date +%Y-%m-%dT%H:%M:%S%z
    2017-06-21T13:33:24+0200
Commits on Jan 15, 2014
  1. mpegts: Implement using nanosleep() for systems where clock_nanosleep…

    decke committed Jan 13, 2014
    …() is not available
  2. build: ioctl() is defined in platform specific include files and feat…

    decke committed Jan 15, 2014
    …ures.h is Linux specific
  3. build: Fix a gcc 4.2 warning on 64bit systems

    decke committed Jan 15, 2014
    src/descrambler/capmt.c:485: warning: comparison is always false due to limited range of data type
    src/descrambler/capmt.c:487: warning: comparison is always false due to limited range of data type
    src/descrambler/capmt.c:538: warning: comparison is always false due to limited range of data type
    src/descrambler/capmt.c:549: warning: comparison is always false due to limited range of data type
Commits on Jan 10, 2014
  1. build: declare environ explicitly on FreeBSD

    decke committed Jan 10, 2014
    src/trap.c:107: error: 'environ' undeclared (first use in this function)
  2. build: Add missing include for Dl_info on FreeBSD which is only used

    decke committed Jan 10, 2014
    when execinfo is enabled.
    
    src/trap.c:144: error: 'Dl_info' undeclared (first use in this function)
    src/trap.c:144: error: expected ';' before 'dli'
    cc1: warnings being treated as errors
    src/trap.c:187: warning: implicit declaration of function 'dladdr'
    src/trap.c:187: error: 'dli' undeclared (first use in this function)
Commits on Jan 8, 2014
  1. Revert "freebsd: Assume all devices on FreeBSD are USB 2.0 per defaul…

    decke committed Jan 8, 2014
    …t because"
    
    This reverts commit fd75ad6.
Commits on Jan 5, 2014
  1. freebsd: Assume all devices on FreeBSD are USB 2.0 per default because

    decke committed Jan 5, 2014
    FreeBSD does not have sysfs to read the device speed and type properly.
    The good thing is that there are no PCI devices that support V4L right
    now so all supported devices are from webcamd which only supports USB
    devices so that default is always correct.
  2. build: Hide glibc workarounds in PLATFORM_LINUX because it does only …

    decke committed Jan 5, 2014
    …make sense on Linux.
Commits on Jan 4, 2014
  1. build: Fix compile warning with clang 3.3

    decke committed Jan 4, 2014
    src/descrambler/cwc.c:493:11: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
      if (len < 0) return -1;
          ~~~ ^ ~
Commits on Oct 11, 2013
  1. tvhpoll: various fixes for tvhpoll on FreeBSD

    decke authored and adamsutton committed Jun 3, 2013
    - kqueue filters are not bitmasks so we need to treat them a bit different
    - Properly check timeout because default value is -1
    - Use correct variable kevent.filter to detect which event was triggered
    - Fix building on FreeBSD i386
Commits on Jun 2, 2013
  1. Fix compile errors for kqueue on FreeBSD.

    decke committed Jun 2, 2013
    src/tvhpoll.c:127: warning: assignment makes pointer from integer without a cast
    src/tvhpoll.c:179: warning: assignment makes integer from pointer without a cast
  2. Add missing includes for FreeBSD.

    decke committed Jun 2, 2013
    src/tcp.c:38: error: 'AF_INET' undeclared here (not in a function)
    src/tcp.c:99: error: 'SOCK_STREAM' undeclared (first use in this function)
    src/tcp.c:121: error: 'AF_INET6' undeclared (first use in this function)
    src/tcp.c:159: error: 'SOL_SOCKET' undeclared (first use in this function)
    src/tcp.c:159: error: 'SO_ERROR' undeclared (first use in this function)
  3. Merge remote-tracking branch 'upstream/master' after all FreeBSD

    decke committed Jun 2, 2013
    related changes have been merged from upstream.
Commits on May 31, 2013
  1. Fix warning because of wrong time_t format specifier on FreeBSD i386

    decke authored and adamsutton committed May 24, 2013
    and fix places where format specifier is hardcoded for time_t and
    correctly use PRItime_t instead.
    
    src/epg.c:1412: warning: format '%ld' expects type 'long int', but argument 7 has type 'time_t'
    src/dvr/dvr_rec.c:596: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
    src/epggrab/module/eit.c:536: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'time_t'
  2. Fix printf format modifier to build properly with CLANG.

    decke authored and adamsutton committed May 6, 2013
    src/htsp_server.c:485:55: error: format specifies type 'short' but the argument has type 'int' [-Werror,-Wformat]
            p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%hd%s",
                                                        ~~^
                                                        %d
  3. Fix sendfile() call on FreeBSD/i386

    decke authored and adamsutton committed May 6, 2013
    src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type
  4. Add missing include for ssize_t on FreeBSD.

    decke authored and adamsutton committed May 5, 2013
    src/tvhlog.h:48: error: expected declaration specifiers or '...' before 'ssize_t'
    src/tvhlog.c:244: error: conflicting types for '_tvhlog_hexdump'
    src/tvhlog.h:48: error: previous declaration of '_tvhlog_hexdump' was here
  5. Fix IPv4 multicasting on FreeBSD and make IPv6 multicasting optional

    decke authored and adamsutton committed May 4, 2013
    because it's not yet supported on FreeBSD.
  6. __u8 is not available on FreeBSD so use u_int8_t instead

    decke authored and adamsutton committed May 4, 2013
    tvheadend-3.4/src/dvb/diseqc.h:10: error: expected declaration specifiers or '...' before '__u8'
    tvheadend-3.4/src/dvb/diseqc.h:11: error: expected declaration specifiers or '...' before '__u8'
  7. Add sendfile(2) support for FreeBSD.

    decke authored and adamsutton committed May 4, 2013