alelievr / libft-unit-test

457 stars 88 forks source link

MAP_ANONYMOUS n'est pas déclaré #13

Closed MiloParigi closed 7 years ago

MiloParigi commented 7 years ago

Problème quand je fait un make avec un git clone tout frais :

src/main.c:266:72: error: use of undeclared identifier 'MAP_ANONYMOUS' if ((g_shared_mem = mmap(NULL, sizeof(t_map), PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0)) == MAP_FAILED)

alelievr commented 7 years ago

Salut, es-tu sous linux ?

MiloParigi commented 7 years ago

Non, je suis sur un mac !

alelievr commented 7 years ago

C'est bizzare, c'est la premiere fois que je vois ce bug sous mac. Essaye de remplacer MAP_ANONYMOUS par MAP_ANON.