mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge branch 'tor-github/pr/1049'
This commit is contained in:
commit
61bd8f428b
4
changes/bug30614
Normal file
4
changes/bug30614
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (NetBSD):
|
||||||
|
- Fix usage of minherit() on NetBSD and other platforms that define
|
||||||
|
MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
|
||||||
|
30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
|
@ -50,11 +50,15 @@
|
|||||||
|
|
||||||
#ifdef INHERIT_ZERO
|
#ifdef INHERIT_ZERO
|
||||||
#define FLAG_ZERO INHERIT_ZERO
|
#define FLAG_ZERO INHERIT_ZERO
|
||||||
|
#elif defined(MAP_INHERIT_ZERO)
|
||||||
|
#define FLAG_ZERO MAP_INHERIT_ZERO
|
||||||
#endif
|
#endif
|
||||||
#ifdef INHERIT_NONE
|
#ifdef INHERIT_NONE
|
||||||
#define FLAG_NOINHERIT INHERIT_NONE
|
#define FLAG_NOINHERIT INHERIT_NONE
|
||||||
#elif defined(VM_INHERIT_NONE)
|
#elif defined(VM_INHERIT_NONE)
|
||||||
#define FLAG_NOINHERIT VM_INHERIT_NONE
|
#define FLAG_NOINHERIT VM_INHERIT_NONE
|
||||||
|
#elif defined(MAP_INHERIT_NONE)
|
||||||
|
#define FLAG_NOINHERIT MAP_INHERIT_NONE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(HAVE_MADVISE)
|
#elif defined(HAVE_MADVISE)
|
||||||
|
Loading…
Reference in New Issue
Block a user