Check if lstat() is available and use stat() instead if it isn't

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1339 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-01-22 11:19:42 +00:00
parent 34337d7b76
commit accb2e46c9
3 changed files with 21 additions and 33 deletions

View File

@@ -12,6 +12,10 @@
#include <sys/types.h>
#include <sys/wait.h>
#ifndef HAVE_LSTAT
# define lstat(a, b) stat(a, b)
#endif
CFile::CFile() {
m_iFD = -1;
m_bClose = false;