mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Merge pull request #11221 from pinotree/hurd-fixes
Some fixes for GNU/Hurd
This commit is contained in:
commit
c77b671a66
3 changed files with 9 additions and 1 deletions
|
@ -29,4 +29,8 @@ ifdef HOST_OS
|
||||||
HOST_SOLARIS = 1
|
HOST_SOLARIS = 1
|
||||||
HOST_UNIX = 1
|
HOST_UNIX = 1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(HOST_KERNEL), gnu)
|
||||||
|
HOST_HURD = 1
|
||||||
|
HOST_UNIX = 1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -137,7 +137,7 @@ std::optional<Path> getSelfExe()
|
||||||
{
|
{
|
||||||
static auto cached = []() -> std::optional<Path>
|
static auto cached = []() -> std::optional<Path>
|
||||||
{
|
{
|
||||||
#if __linux__
|
#if __linux__ || __GNU__
|
||||||
return readLink("/proc/self/exe");
|
return readLink("/proc/self/exe");
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
# define FS_ROOT FS_SEP
|
# define FS_ROOT FS_SEP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
# define PATH_MAX 4096
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
/* ----------- tests for util.hh ------------------------------------------------*/
|
/* ----------- tests for util.hh ------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue