[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error compilation zmailer on FreeBSD
Hello !
I compile zmailer, (CVS from 10 Jun 2004) on FreeBSD 5.2.1, but get errorr -
making all in smtpserver
gcc -g -O2 -DHAVE_CONFIG_H -I./../include -I../include -I.. -c subdaemons.c
subdaemons.c: In function `subdaemon_send_to_peer':
subdaemons.c:498: error: `EBADFD' undeclared (first use in this function)
subdaemons.c:498: error: (Each undeclared identifier is reported only once
subdaemons.c:498: error: for each function it appears in.)
subdaemons.c: In function `fdgetc':
subdaemons.c:635: error: `EBADFD' undeclared (first use in this function)
*** Error code 1
In usr/include/errno.h - "Bad File Descpiptor" - EBADF, not EBADFD :-(
--- subdaemons.c Sat Jun 12 12:55:39 2004
+++ subdaemons.c.orig Sat Jun 12 12:54:44 2004
@@ -495,7 +495,7 @@
peer->outlen = peer->outptr = 0;
continue; /* Written all.. */
}
- if ((rc < 0) && (errno == EBADF)) {
+ if ((rc < 0) && (errno == EBADFD)) {
subdaemon_kill_peer(peer);
return -1;
}
@@ -632,7 +632,7 @@
goto extract_from_buffer;
}
if (rc == 0) return -1; /* EOF */
- if (errno == EBADF) return -1; /* Simulate EOF! */
+ if (errno == EBADFD) return -1; /* Simulate EOF! */
if (errno == EINTR) continue;
if (errno == EAGAIN) {
fd_set rdset;
Bay, bay !
Igor S Chencov
System Administrator
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi