[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conflicting types for `read'

# uname -a
NetBSD ns01 1.6 NetBSD 1.6 (ns01-1.6) #1: Mon Nov 25 17:03:01 CST 2002 
   root@ns01:/usr/src/1.6/sys/arch/alpha/compile/ns01-1.6 alpha

I get the following error during compile:

# gmake
./compile qmail-getpw.c `cat sql.headers`
In file included from sql.h:6,
                 from qmail-getpw.c:17:
/usr/include/unistd.h:136: conflicting types for `read'
readwrite.h:4: previous declaration of `read'
/usr/include/unistd.h:148: conflicting types for `write'
readwrite.h:5: previous declaration of `write'
qmail-getpw.c: In function `main':
qmail-getpw.c:92: warning: return type of `main' is not `int'
gmake: *** [qmail-getpw.o] Error 1

ssize_t  read __P((int, void *, size_t));

ssize_t  write __P((int, const void *, size_t));

NetBSD/Alpha is a 64-bit platform.

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.