summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
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/lib/system.c
parent4db54fff13c2dfd1ea307faa32cf1dd34916c924 (diff)
downloadsamba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.tar.gz
samba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.tar.bz2
samba-dd0506d15ddb01b8f6e7b6be604a3445b73db434.zip
Attempt to fix the build on NetBSD
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 5158750f98..d9d3266fbc 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -477,6 +477,12 @@ static void init_stat_ex_from_stat (struct stat_ex *dst,
dst->st_ex_btime = get_create_timespec(src);
dst->st_ex_blksize = src->st_blksize;
dst->st_ex_blocks = src->st_blocks;
+
+#ifdef HAVE_STAT_ST_FLAGS
+ dst->st_ex_flags = src->st_flags;
+#else
+ dst->st_ex_flags = 0;
+#endif
}
/*******************************************************************