This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Go Patch to conditionalize use of sys/mman.h methods
- From: Jay Foad <jay dot foad at gmail dot com>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Mar 2010 16:33:36 +0100
- Subject: Re: GCC Go Patch to conditionalize use of sys/mman.h methods
> +#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.