heimdal icon indicating copy to clipboard operation
heimdal copied to clipboard

Redefinition errors on ppc64 linux

Open dmulder opened this issue 8 years ago • 3 comments

These defines cause redefinition warnings on most platforms/compilers. On ppc64 linux with gcc 4.7 it caused an error.

dmulder avatar Aug 02 '16 19:08 dmulder

The correct define for Windows is _WIN32 but the correct fix for this is to include the header file in roken.h.in that defines EAFNOSUPPORT and EWOULDBLOCK.

jaltman avatar Aug 02 '16 21:08 jaltman

Those defines are in errno.h, which if you look in roken.h.in, it's already included. Maybe the failure here is that HAVE_ERRNO_H isn't defined? That should be defined in config.h, but I don't see config.h included anywhere in roken.h.in.

dmulder avatar Aug 02 '16 22:08 dmulder

@dmulder, where are the redefinition warnings coming from? Perhaps the problem is that they are not including config.h before roken.h?

lhoward avatar Dec 27 '18 06:12 lhoward