5ace9fa993
Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently implements the gigabit ethernet and USB3 (Since Aravis 0.5.x) protocols used by industrial cameras. It also provides a basic ethernet camera simulator and a simple video viewer. WWW: https://github.com/AravisProject/aravis PR: 215907 Submitted by: rozhuk.im@gmail.com
27 lines
565 B
C
27 lines
565 B
C
--- src/arvgvdevice.c.orig 2017-04-10 13:30:09 UTC
|
|
+++ src/arvgvdevice.c
|
|
@@ -20,6 +20,8 @@
|
|
* @short_description: GigEVision device
|
|
*/
|
|
|
|
+#include <sys/param.h>
|
|
+
|
|
#include <arvgvdeviceprivate.h>
|
|
#include <arvdeviceprivate.h>
|
|
#include <arvgc.h>
|
|
@@ -36,9 +38,14 @@
|
|
#include <arvenumtypes.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
-#ifndef __APPLE__
|
|
+#ifdef __linux__
|
|
#include <linux/ip.h>
|
|
#endif
|
|
+#ifdef BSD
|
|
+#include <netinet/in.h>
|
|
+#include <netinet/ip.h>
|
|
+#define iphdr ip
|
|
+#endif
|
|
#include <netinet/udp.h>
|
|
|
|
static GObjectClass *parent_class = NULL;
|