Browse Source

Merge pull request #683 from vaygr/openbsd-build

fixed build with OpenBSD
pull/684/head
orignal 8 years ago committed by GitHub
parent
commit
c40a463549
  1. 2
      DaemonLinux.cpp
  2. 2
      Makefile

2
DaemonLinux.cpp

@ -75,10 +75,12 @@ namespace i2p @@ -75,10 +75,12 @@ namespace i2p
return false;
}
#if !defined(__OpenBSD__)
// point std{in,out,err} descriptors to /dev/null
stdin = freopen("/dev/null", "r", stdin);
stdout = freopen("/dev/null", "w", stdout);
stderr = freopen("/dev/null", "w", stderr);
#endif
}
// Pidfile

2
Makefile

@ -21,7 +21,7 @@ ifeq ($(UNAME),Darwin) @@ -21,7 +21,7 @@ ifeq ($(UNAME),Darwin)
else
include Makefile.osx
endif
else ifeq ($(shell echo $(UNAME) | $(GREP) -c FreeBSD),1)
else ifeq ($(shell echo $(UNAME) | $(GREP) -Ec '(Free|Open)BSD'),1)
DAEMON_SRC += DaemonLinux.cpp
include Makefile.bsd
else ifeq ($(UNAME),Linux)

Loading…
Cancel
Save