summaryrefslogtreecommitdiff
path: root/security/zoneminder/patches/patch-src_zm_comms_h
blob: a397459bc0f36b7756e85acbe5f7dfda93ec9af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-src_zm_comms_h,v 1.5 2022/01/12 11:53:26 dsainty Exp $

extern "C" system headers.

Include missing system headers for NetBSD.

To fix Linux readv/writev, back-port:
https://github.com/ZoneMinder/zoneminder/commit/417421b1d869d1b71c8ec1a1e3b082fcede6ce58#diff-484f666f58ec13f38fa402143f2f6ad8e63a013909d3941ffbb3d66745b20c8d

--- src/zm_comms.h.orig	2016-02-03 18:40:30.000000000 +0000
+++ src/zm_comms.h
@@ -22,20 +22,24 @@
 
 #include "zm_exception.h"
 
+extern "C" {
 #include <string.h>
 #include <unistd.h>
 #include <netdb.h>
 #include <errno.h>
 #include <sys/un.h>
-
-#include <set>
-#include <vector>
+#include <stdlib.h>
+#include <time.h>
+#include <sys/uio.h>
 
 #if defined(BSD)
-#include <sys/uio.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #endif
+}
+
+#include <set>
+#include <vector>
 
 class CommsException : public Exception
 {