BUILD: ssl: use MAP_ANON instead of MAP_ANONYMOUS

FreeBSD uses the former, Linux uses the latter but generally also
defines the former as an alias of the latter. Just checked on other
OSes and AIX defines both. So better use MAP_ANON which seems to be
more commonly defined.
This commit is contained in:
Willy Tarreau 2012-09-04 15:43:25 +02:00
parent e566ecbea8
commit ee2e3a4027

View File

@ -372,7 +372,7 @@ int shared_context_init(int size)
size = SHCTX_DEFAULT_SIZE;
shctx = (struct shared_context *)mmap(NULL, sizeof(struct shared_context)+(size*sizeof(struct shared_session)),
PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
if (!shctx || shctx == MAP_FAILED) {
shctx = NULL;
return -1;