Unlike the 3.0.2 release checking out the latest and greatest from Git doesn't fare well building on OpenBSD. The following diff fixes the build issues.
diff --git a/bin/varnishadm/varnishadm.c b/bin/varnishadm/varnishadm.c index aff9336..f4c262c 100644 --- a/bin/varnishadm/varnishadm.c +++ b/bin/varnishadm/varnishadm.c @@ -29,6 +29,7 @@ #include "config.h" +#include <sys/types.h> #include <sys/socket.h> #ifdef HAVE_LIBEDIT diff --git a/bin/varnishd/cache/cache_dir_dns.c b/bin/varnishd/cache/cache_dir_dns.c index 9cad3f6..ee411dc 100644 --- a/bin/varnishd/cache/cache_dir_dns.c +++ b/bin/varnishd/cache/cache_dir_dns.c @@ -29,6 +29,8 @@ #include "config.h" +#include <sys/types.h> +#include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c index cbe5637..10658cd 100644 --- a/bin/varnishd/cache/cache_vrt.c +++ b/bin/varnishd/cache/cache_vrt.c @@ -31,6 +31,8 @@ #include "config.h" +#include <sys/types.h> +#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> diff --git a/bin/varnishd/mgt/mgt_cli.c b/bin/varnishd/mgt/mgt_cli.c index cbea81f..3b0c1a7 100644 --- a/bin/varnishd/mgt/mgt_cli.c +++ b/bin/varnishd/mgt/mgt_cli.c @@ -31,6 +31,7 @@ #include "config.h" +#include <sys/types.h> #include <sys/socket.h> #include <fcntl.h> diff --git a/bin/varnishd/storage/stevedore_utils.c b/bin/varnishd/storage/stevedore_utils.c index 89c6027..2364289 100644 --- a/bin/varnishd/storage/stevedore_utils.c +++ b/bin/varnishd/storage/stevedore_utils.c @@ -34,6 +34,7 @@ #include <sys/types.h> #include <sys/stat.h> #ifdef HAVE_SYS_MOUNT_H +# include <sys/param.h> # include <sys/mount.h> #endif #ifdef HAVE_SYS_STATVFS_H diff --git a/lib/libvarnish/vsha256.c b/lib/libvarnish/vsha256.c index 10b7a6a..0a521b2 100644 --- a/lib/libvarnish/vsha256.c +++ b/lib/libvarnish/vsha256.c @@ -29,6 +29,7 @@ #include "config.h" #ifdef HAVE_SYS_ENDIAN_H +#include <sys/types.h> #include <sys/endian.h> #define VBYTE_ORDER _BYTE_ORDER #define VBIG_ENDIAN _BIG_ENDIAN diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c index d1f6771..5b5c0aa 100644 --- a/lib/libvmod_std/vmod_std.c +++ b/lib/libvmod_std/vmod_std.c @@ -28,6 +28,8 @@ #include "config.h" +#include <sys/types.h> +#include <sys/socket.h> #include <netinet/in.h> #include <ctype.h> -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
