mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
dvb: fix build errors on macosx
fixes the following compile errors: cc1: warnings being treated as errors camswclient.c: In function 'cam_sw_client_open': camswclient.c:81: warning: implicit declaration of function 'strncpy' camswclient.c:81: warning: incompatible implicit declaration of built-in function 'strncpy' camswclient.c:89: warning: implicit declaration of function 'strerror' camswclient.c:89: warning: nested extern declaration of 'strerror' camswclient.c:89: warning: format '%s' expects type 'char *', but argument 9 has type 'int' camswclient.c: In function 'send_ca_pmt': camswclient.c:129: warning: implicit declaration of function 'memcpy' camswclient.c:129: warning: incompatible implicit declaration of built-in function 'memcpy' gstdvbsrc.c:48:19: error: error.h: No such file or directory Signed-off-by: Rob Clark <rob@ti.com>
This commit is contained in:
parent
994156c1b8
commit
f356c4f7de
2 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,8 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
|
@ -78,7 +80,7 @@ cam_sw_client_open (CamSwClient * client, const char *sock_path)
|
|||
g_return_val_if_fail (sock_path != NULL, FALSE);
|
||||
|
||||
addr.sun_family = AF_UNIX;
|
||||
strncpy (addr.sun_path, sock_path, UNIX_PATH_MAX);
|
||||
strncpy (addr.sun_path, sock_path, sizeof (addr.sun_path));
|
||||
|
||||
GST_INFO ("connecting to softcam socket: %s", sock_path);
|
||||
client->sock = socket (PF_UNIX, SOCK_STREAM, 0);
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/poll.h>
|
||||
#include <fcntl.h>
|
||||
#include <error.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in a new issue