build perl: invalid use of undefined type struct pollfd
·
before configure
unset C_INCLUDE_PATH
perl comes with a local poll.h
that attempts to emulate the functionality of poll() if you don't have the right headers
export C_INCLUDE_PATH=$HOME/include:$C_INCLUDE_PATH
the empty string (the second $C_INCLUDE_PATH)
to be implicitly treated the same as .
Which effectively adds the current directory to the system include path,
which makes #include <poll.h> do the same thing as #include "poll.h", which is bad.
更多推荐
所有评论(0)