Hi Luis,
look in the source files for error.h. Change the line
"extern int errno" by "#include <errno.h>".
Hope this works for you.
By the way if you are trying to install qmail you can take a look in http://qmailrocks.com, im not sure if they have the install guide for suse, but maybe it may help you.
Regards,
Victor Guerra