Comments (7)
I checked mmap man page of several platforms on the WWW.
And I listed that MAP_ANON and MAP_ANONYMOUS are supported or not.
MAP_ANON MAP_ANONYMOUS
OpenBSD Y Y(*)
Linux Y(*) Y
FreeBSD Y Y
NetBSD Y N
OSX Y N
Solaris Y N
HP-UX N Y
AIX N Y
IRIX N N
(*) synonym to other
Simply replacing MAP_ANON with MAP_ANONYMOUS will cause another issue, sorry.
Instead of replacing, how about adding define, like this.
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif
Thanks.
from portable.
What platform is this an issue on?
from portable.
Hi,
HP-UX 11.31 itanium without gcc.
I checked header files, too.
from portable.
We added a compat definition in af705b3
from portable.
Sorry,
If LibreSSL keeps using MAP_ANON, this include/sys/mman.h fix should be like this.
#ifndef MAP_ANON
#ifdef MAP_ANONYMOUS
#define MAP_ANON MAP_ANONYMOUS
#else
#error "System does not support mapping anonymous pages?"
#endif
#endif
My recommendation was wrong.
This fix should be for the platform that does NOT define MAP_ANON but MAP_ANONYMOUS.
Sorry, again.
from portable.
I see. Thanks for the note, this is now fixed.
from portable.
Thanks for everything, busterb.
I confirmed this is fixed.
from portable.
Related Issues (20)
- re-enable chocolatey package HOT 5
- 3.8.3, 3.9.0 mingw-w64 x86_64 clang ASM CET builds crash on startup HOT 13
- Building 3.9.0 on windows, with cmake+visual studio HOT 1
- libressl fails to build after 2024-04-01 HOT 3
- libressl 3.8.3 build fail with error: invalid instruction mnemonic 'endbr64' HOT 3
- LibreSSL 3.8.3 fails to build with `syntax error: _CET_ENDBR` (Windows, MSVC, x64) HOT 7
- Windows MinGW build failing with Bad file number HOT 8
- libressl-3.9.0: build fails for ios HOT 13
- Building on MINGW64_NT-10.0-19045 fails with "../../libtool: line 1900: /mingw64/bin/gcc: Argument list too long" in libressl/apps/ocspcheck HOT 1
- Build fail : missing RC4 git HEAD HOT 2
- SIGSEGV in `bn_bitsize` triggerable via remote (s_client) HOT 1
- Use of SHA ISA Extensions
- CI on Solaris started failing whirlpool_test HOT 3
- Expected steps for Visual Studio native build on x64 Windows 10 HOT 4
- BN_mod_exp_mont_word() is not a public symbol HOT 3
- Why was X509V3_EXT_cleanup() removed? HOT 4
- Crosscompile linux to windows: linking fails, undefined reference SSL_library_init 3.9.2 HOT 4
- Unsupported platforms should fail earlier in the configuration process HOT 4
- Unexpected "unknown pkey type" errors during TLSv1.3 handshakes on server with multiple certificates HOT 1
- SSL_get_certificate() returns wrong certificate HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portable.