summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-10-25 00:03:02 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-10-25 00:03:02 +0000
commited26f50fbb08d076cee91e4fdff214fe64e82d9a (patch)
tree59b58930de12077404f92ec48d7802313d975ae1
parent4978eed9c0d774fa49f6bacea21d48b378b3a793 (diff)
downloadcups-ed26f50fbb08d076cee91e4fdff214fe64e82d9a.tar.gz
OpenBSD build fixes.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12233 a1ca3aef-8c08-0410-bb20-df032aa958be
-rw-r--r--config.h.in2
-rw-r--r--cups/http-private.h1
-rw-r--r--locale/Makefile6
3 files changed, 5 insertions, 4 deletions
diff --git a/config.h.in b/config.h.in
index 5937ac3c2..7163e641c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -624,7 +624,7 @@
#ifdef HAVE_ARC4RANDOM
# define CUPS_RAND() arc4random()
-# define CUPS_SRAND(v) arc4random_stir()
+# define CUPS_SRAND(v)
#elif defined(HAVE_RANDOM)
# define CUPS_RAND() random()
# define CUPS_SRAND(v) srandom(v)
diff --git a/cups/http-private.h b/cups/http-private.h
index 7ef0833cd..ec5ad79fd 100644
--- a/cups/http-private.h
+++ b/cups/http-private.h
@@ -126,6 +126,7 @@ extern CFAbsoluteTime SecCertificateNotValidAfter(SecCertificateRef certificate)
# ifndef WIN32
# include <net/if.h>
+# include <resolv.h>
# ifdef HAVE_GETIFADDRS
# include <ifaddrs.h>
# else
diff --git a/locale/Makefile b/locale/Makefile
index 4b0cc81b4..5de848b65 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -159,7 +159,7 @@ pot: checkpo po2strings
#
checkpo: checkpo.o ../cups/$(LIBCUPSSTATIC)
- echo Linking $<...
+ echo Linking $@...
$(CC) $(ARCHFLAGS) $(LDFLAGS) -o checkpo checkpo.o \
../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
$(COMMONLIBS) $(LIBZ)
@@ -178,7 +178,7 @@ checkall: checkpo
#
po2strings: po2strings.o ../cups/$(LIBCUPSSTATIC)
- echo Linking $<...
+ echo Linking $@...
$(CC) $(ARCHFLAGS) $(LDFLAGS) -o po2strings po2strings.o \
../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
$(COMMONLIBS) $(LIBZ)
@@ -192,7 +192,7 @@ po2strings: po2strings.o ../cups/$(LIBCUPSSTATIC)
#
strings2po: strings2po.o
- echo Linking $<...
+ echo Linking $@...
$(CC) $(ARCHFLAGS) $(LDFLAGS) -o strings2po strings2po.o