Skip to content

Commit

Permalink
Fix windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Dec 11, 2014
1 parent aeb1b64 commit 6a60a66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filed/fd_plugins.c
Expand Up @@ -663,7 +663,7 @@ int plugin_save(JCR *jcr, FF_PKT *ff_pkt, bool top_level)
* that the data of each file gets backed up only once.
*/
ff_pkt->LinkFI = 0;
if (!(ff_pkt->flags & FO_NO_HARDLINK) && ff_pkt->statp.st_nlink > 1) {
if (!bit_is_set(FO_NO_HARDLINK, ff_pkt->flags) && ff_pkt->statp.st_nlink > 1) {
CurLink *hl;

switch (ff_pkt->statp.st_mode & S_IFMT) {
Expand Down
2 changes: 1 addition & 1 deletion src/win32/findlib/Makefile
Expand Up @@ -33,7 +33,7 @@ LDLIBS = ../lib/libbareos.dll \

LIBBAREOSFIND_SRCS = acl.c attribs.c bfile.c create_file.c \
drivetype.c enable_priv.c find_one.c \
find.c fstype.c match.c mkpath.c \
find.c fstype.c hardlink.c match.c mkpath.c \
shadowing.c win32.c xattr.c
LIBBAREOSFIND_OBJS = $(LIBBAREOSFIND_SRCS:.c=.o)

Expand Down

0 comments on commit 6a60a66

Please sign in to comment.