symisc / PH7

An Embedded Implementation of PHP (C Library)
http://ph7.symisc.net
Other
494 stars 68 forks source link

Compilation under Ubuntu 21.10 fails due to use of MAP_FILE in mmap #36

Open Crypto2 opened 2 years ago

Crypto2 commented 2 years ago

I'm not sure if there are any systems where MAP_FILE matters still, I know in Linux it's ignored. So I just put this in after the Unix includes to fix it:

ifndef MAP_FILE

define MAP_FILE 0

endif