Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev

[PATCH] Fix Varnish build on OpenBSD

 

 

Varnish dev RSS feed   Index | Next | Previous | View Threaded


brad at comstyle

Apr 26, 2012, 11:57 AM

Post #1 of 2 (312 views)
Permalink
[PATCH] Fix Varnish build on OpenBSD

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
varnish-dev [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev


phk at phk

Apr 27, 2012, 6:47 AM

Post #2 of 2 (291 views)
Permalink
Re: [PATCH] Fix Varnish build on OpenBSD [In reply to]

In message <20120426185723.GA9552 [at] rox>, Brad Smith writes:
>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.

Committed, thanks.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk [at] FreeBSD | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Varnish dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.