summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-26 22:39:50 +0200
committerVolker Lendecke <vl@samba.org>2009-05-26 23:20:34 +0200
commitdd0506d15ddb01b8f6e7b6be604a3445b73db434 (patch)
treefaea4d24619a780777daa5cab41773f914ec84d3 /source3/smbd
parent4db54fff13c2dfd1ea307faa32cf1dd34916c924 (diff)
downloadsamba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.tar.gz
samba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.tar.bz2
samba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.zip
Attempt to fix the build on NetBSD
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index ef7f617010..1d95c207ba 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -3613,7 +3613,6 @@ static const struct {unsigned stat_fflag; unsigned smb_fflag;}
static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,
uint32 *smb_fflags, uint32 *smb_fmask)
{
-#ifdef HAVE_STAT_ST_FLAGS
int i;
for (i = 0; i < ARRAY_SIZE(info2_flags_map); ++i) {
@@ -3622,7 +3621,6 @@ static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,
*smb_fflags |= info2_flags_map[i].smb_fflag;
}
}
-#endif /* HAVE_STAT_ST_FLAGS */
}
static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
@@ -3630,7 +3628,6 @@ static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
const uint32 smb_fmask,
int *stat_fflags)
{
-#ifdef HAVE_STAT_ST_FLAGS
uint32 max_fmask = 0;
int i;
@@ -3660,9 +3657,6 @@ static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
}
return True;
-#else
- return False;
-#endif /* HAVE_STAT_ST_FLAGS */
}