Fix compile errors on Illumos
This commit is contained in:
		
							parent
							
								
									daa16cca11
								
							
						
					
					
						commit
						ae6b631dc4
					
				
					 3 changed files with 9 additions and 0 deletions
				
			
		|  | @ -13,6 +13,7 @@ | ||||||
| #include <sstream> | #include <sstream> | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| 
 | 
 | ||||||
|  | #include <limits.h> | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <sys/time.h> | #include <sys/time.h> | ||||||
| #include <sys/wait.h> | #include <sys/wait.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,10 @@ libstore_LIBS = libutil libformat | ||||||
| 
 | 
 | ||||||
| libstore_LDFLAGS = -lsqlite3 -lbz2 | libstore_LDFLAGS = -lsqlite3 -lbz2 | ||||||
| 
 | 
 | ||||||
|  | ifeq ($(OS), SunOS) | ||||||
|  | 	libstore_LDFLAGS += -lsocket | ||||||
|  | endif | ||||||
|  | 
 | ||||||
| libstore_CXXFLAGS = \
 | libstore_CXXFLAGS = \
 | ||||||
|  -DNIX_STORE_DIR=\"$(storedir)\" \
 |  -DNIX_STORE_DIR=\"$(storedir)\" \
 | ||||||
|  -DNIX_DATA_DIR=\"$(datadir)\" \
 |  -DNIX_DATA_DIR=\"$(datadir)\" \
 | ||||||
|  |  | ||||||
|  | @ -6,4 +6,8 @@ nix-daemon_SOURCES := $(d)/nix-daemon.cc | ||||||
| 
 | 
 | ||||||
| nix-daemon_LIBS = libmain libstore libutil libformat | nix-daemon_LIBS = libmain libstore libutil libformat | ||||||
| 
 | 
 | ||||||
|  | ifeq ($(OS), SunOS) | ||||||
|  |         nix-daemon_LDFLAGS += -lsocket | ||||||
|  | endif | ||||||
|  | 
 | ||||||
| $(eval $(call install-symlink, nix-daemon, $(bindir)/nix-worker)) | $(eval $(call install-symlink, nix-daemon, $(bindir)/nix-worker)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue