Hello. I have a problem compiling my ANSI C (with GTK+) code on OpenBSD. It seems gtk.h includes unistd.h and conflicts with my encrypt() function, but as far as I know encrypt() shouldn't be defined unless _XOPEN_SOURCE is defined, which I don't define and I use -ansi parameter.
try this example: #include <unistd.h> void encrypt(void) {} int main(void) { encrypt(); return(0); } cc -Wall -ansi test.c -o test test.c:3: error: conflicting types for 'encrypt' /usr/include/unistd.h:241: error: previous declaration of 'encrypt' was here Yes, I know I can rename my function, but I'm not sure, if this is correct behavior.