ffi / ffi-compiler

Apache License 2.0
32 stars 10 forks source link

Incorrect define #28

Open uvlad7 opened 2 weeks ago

uvlad7 commented 2 weeks ago

The problem is here. Define is incorrect when header has slash

c.have_header?("sys/mman.h")
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -fPIC -DHAVE_MEMFD_CREATE\=1 -DHAVE_SYS/MMAN_H\=1 -o x86_64-linux/memfd.o -c ./memfd.c
<command-line>: warning: ISO C99 requires whitespace after the macro name

Pls reuse mkmf