This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]