check symbol HAVE_UNISTD_H instead of UNISTD_H to include unistd.h

This commit is contained in:
Yang Tse 2006-11-02 00:34:21 +00:00
parent 0ed285e84d
commit 4f4427ff41

View File

@ -29,7 +29,7 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef UNISTD_H
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif