]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Adding execinfo lib validation in configure.ac file for openBSD compatibility
authorTheRedTrainer <oswaldo.perez.dominguez@gmail.com>
Tue, 26 Feb 2019 15:34:03 +0000 (09:34 -0600)
committerTheRedTrainer <oswaldo.perez.dominguez@gmail.com>
Tue, 26 Feb 2019 15:34:03 +0000 (09:34 -0600)
Adding sys/socket header reference for openBSD compatibility

configure.ac
src/object/certificate.c
src/object/roa.c
src/resource.c
src/thread_var.c

index d723366940d515288904f17c27d1a145e59625e7..1a2ee4874487039ea7538f57de95e0f5860c04fd 100644 (file)
@@ -37,6 +37,11 @@ AC_SEARCH_LIBS([toml_parse], [toml], [],
        [AC_MSG_ERROR([unable to find the toml_parse() function])]
 )
 
+AC_SEARCH_LIBS([backtrace],[execinfo],[],
+       [AC_MSG_ERROR([unable to find backtrace() function])]
+)
+
+
 # Check dependencies.
 PKG_CHECK_MODULES([CHECK], [check])
 
index be9209ede360b8a10b008d2f24595bbeaafe936b..aaf0f75229ee50033dcb67a626a60596eaaa8784 100644 (file)
@@ -19,6 +19,8 @@
 #include "object/name.h"
 #include "rsync/rsync.h"
 
+#include <sys/socket.h>
+
 /* Just to prevent some line breaking. */
 #define GN_URI uniformResourceIdentifier
 
index 2a51685ae01db632842a5002c429f5a4d6aaebd5..b3aee4e2fb11240fdf417f0daae5caa69be667ba 100644 (file)
@@ -10,6 +10,8 @@
 #include "asn1/oid.h"
 #include "object/signed_object.h"
 
+#include <sys/socket.h>
+
 static int
 roa_decode(OCTET_STRING_t *string, void *arg)
 {
index 99b2d55cd61141c0e62a581cea48ea7cb8c00d8f..d144c96864cbd23692f9f235345d121d90da9680 100644 (file)
@@ -10,6 +10,8 @@
 #include "resource/ip4.h"
 #include "resource/ip6.h"
 #include "resource/asn.h"
+#include <sys/socket.h>
+
 
 /* The resources we extracted from one certificate. */
 struct resources {
index 056be6f35b5f1907cd884b768365cec86112934b..955e3253b9e5d2ed4850c75253ef75dfa7341716 100644 (file)
@@ -7,6 +7,8 @@
 #include <string.h>
 #include <arpa/inet.h>
 
+#include <sys/socket.h>
+
 static pthread_key_t state_key;
 static pthread_key_t filenames_key;