aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorDanny Wilson <danny@decube.net>2014-04-03 16:59:25 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-03 17:39:57 +0200
commitae6b631dc48f4b923a6ed17b8d6e59524c4ea883 (patch)
tree482258382b5ecfc05127734ffb9f36b5db2aeac6 /src/libstore
parentdaa16cca11304a0e91a188176959e2af28be1f57 (diff)
Fix compile errors on Illumos
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc1
-rw-r--r--src/libstore/local.mk4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 2e2f92fad..f38cd2994 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -13,6 +13,7 @@
#include <sstream>
#include <algorithm>
+#include <limits.h>
#include <time.h>
#include <sys/time.h>
#include <sys/wait.h>
diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index 2dddce740..40cb25dc5 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -10,6 +10,10 @@ libstore_LIBS = libutil libformat
libstore_LDFLAGS = -lsqlite3 -lbz2
+ifeq ($(OS), SunOS)
+ libstore_LDFLAGS += -lsocket
+endif
+
libstore_CXXFLAGS = \
-DNIX_STORE_DIR=\"$(storedir)\" \
-DNIX_DATA_DIR=\"$(datadir)\" \