components/desktop/gstreamer1/gst-plugins-good/patches/03-ioctl.patch
changeset 6196 92a092dbd0f6
child 7894 0c22900562ad
equal deleted inserted replaced
6195:baf84532df66 6196:92a092dbd0f6
       
     1 Patch for building on Solaris.  Evaluate for sending upstream
       
     2 
       
     3 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2.c	2014-10-19 04:41:09.000000000 -0700
       
     4 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2.c	2015-06-15 17:42:39.471175162 -0700
       
     5 @@ -35,6 +35,10 @@
       
     6  #include <sys/types.h>
       
     7  #include <unistd.h>
       
     8  
       
     9 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    10 +#include <sys/filio.h>
       
    11 +#endif
       
    12 +
       
    13  #include "ext/videodev2.h"
       
    14  #include "v4l2-utils.h"
       
    15  
       
    16 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2allocator.c	2014-11-12 03:04:42.000000000 -0800
       
    17 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2allocator.c	2015-06-15 17:42:17.710094146 -0700
       
    18 @@ -25,6 +25,10 @@
       
    19  # define _GNU_SOURCE            /* O_CLOEXEC */
       
    20  #endif
       
    21  
       
    22 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    23 +#include <sys/filio.h>
       
    24 +#endif
       
    25 +
       
    26  #include "ext/videodev2.h"
       
    27  #include "gstv4l2allocator.h"
       
    28  #include "v4l2_calls.h"
       
    29 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2bufferpool.c	2014-12-16 06:04:56.000000000 -0800
       
    30 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2bufferpool.c	2015-06-15 17:43:14.243219026 -0700
       
    31 @@ -35,6 +35,10 @@
       
    32  #include <string.h>
       
    33  #include <unistd.h>
       
    34  
       
    35 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    36 +#include <sys/filio.h>
       
    37 +#endif
       
    38 +
       
    39  #include "gst/video/video.h"
       
    40  #include "gst/video/gstvideometa.h"
       
    41  #include "gst/video/gstvideopool.h"
       
    42 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2object.c	2014-12-16 06:04:56.000000000 -0800
       
    43 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2object.c	2015-06-15 17:42:53.203101602 -0700
       
    44 @@ -36,6 +36,10 @@
       
    45  #include <gudev/gudev.h>
       
    46  #endif
       
    47  
       
    48 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    49 +#include <sys/filio.h>
       
    50 +#endif
       
    51 +
       
    52  #include "v4l2_calls.h"
       
    53  #include "gstv4l2tuner.h"
       
    54  #include "gstv4l2colorbalance.h"
       
    55 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2radio.c	2014-10-19 04:41:09.000000000 -0700
       
    56 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2radio.c	2015-06-15 17:43:57.637287821 -0700
       
    57 @@ -42,6 +42,10 @@
       
    58  
       
    59  #include <string.h>
       
    60  
       
    61 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    62 +#include <sys/filio.h>
       
    63 +#endif
       
    64 +
       
    65  #include "gst/gst-i18n-plugin.h"
       
    66  
       
    67  #include "gstv4l2tuner.h"
       
    68 --- gst-plugins-good-1.4.5/sys/v4l2/gstv4l2sink.c	2014-11-04 01:08:23.000000000 -0800
       
    69 +++ gst-plugins-good-1.4.5/sys/v4l2/gstv4l2sink.c	2015-06-15 17:43:43.395888961 -0700
       
    70 @@ -53,6 +53,10 @@
       
    71  #include <config.h>
       
    72  #endif
       
    73  
       
    74 +#ifdef HAVE_FIONREAD_IN_SYS_FILIO
       
    75 +#include <sys/filio.h>
       
    76 +#endif
       
    77 +
       
    78  #include "gst/video/gstvideometa.h"
       
    79  
       
    80  #include "gstv4l2colorbalance.h"