NetBSD port
This commit is contained in:
committed by
Jon Trulson
parent
a4f9413950
commit
2712d5f787
@@ -4120,15 +4120,19 @@ CheckDeletePermission(
|
||||
char *parentdir,
|
||||
char *destinationPath)
|
||||
{
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
struct statfs statbuf;
|
||||
#elif defined(__NetBSD__)
|
||||
struct statvfs statbuf;
|
||||
#else
|
||||
struct stat statbuf;
|
||||
#endif
|
||||
char fname[1024];
|
||||
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
if (statfs(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#elif defined(__NetBSD__)
|
||||
if (statvfs(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#else
|
||||
if (lstat(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#endif
|
||||
|
||||
@@ -452,15 +452,19 @@ CopyCheckDeletePermission(
|
||||
char *parentdir,
|
||||
char *destinationPath)
|
||||
{
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
struct statfs statbuf;
|
||||
#elif defined(__NetBSD__)
|
||||
struct statvfs statbuf;
|
||||
#else
|
||||
struct stat statbuf;
|
||||
#endif
|
||||
char fname[1024];
|
||||
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
if (statfs(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#elif defined(__NetBSD__)
|
||||
if (statvfs(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#else
|
||||
if (lstat(parentdir,&statbuf) < 0) /* does not exist */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user