Bugzilla – Bug 780
MAP_ANON not defined in HP-UX 11.31
Last modified: 2016-06-14 12:28:48 CEST
compat/arc4random.c and compat/getentropy_linux.c both use the MAP_ANON definition, but HP-UX 11.31 doesn't define this in its system headers.
Fortunately, the HP-UX headers do define an equivalent, namely MAP_ANONYMOUS, so adding this code after the system header inclusions to the two files mentioned above allows the files to be compiled on HP-UX 11.31:
#define MAP_ANON MAP_ANONYMOUS
Thank you for the fixes. Applied in code repository.
If you have the code repository; 'make test' will run a self-test.
Best regards, Wouter