GCC Go Patch to conditionalize use of sys/mman.h methods

Jay Foad jay.foad@gmail.com
Mon Mar 29 15:47:00 GMT 2010


> +#ifndef HAVE_SYS_MMAN_H
> +  {
> +    int i;
> +    i = mprotect (ret, size, PROT_READ | PROT_WRITE | PROT_EXEC);
> +    assert (i == 0);
> +  }
> +#endif

Did you mean "#ifdef" ?

Jay.



More information about the Gcc-patches mailing list