Skip to content

Commit

Permalink
s4:ntvfs: Use #ifdef instead of #if for config.h definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Gary Lockyer <[email protected]>
  • Loading branch information
cryptomilk authored and GaryWL committed Nov 28, 2018
1 parent 788d9f3 commit 4c4d588
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/pvfs_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ NTSTATUS pvfs_read(struct ntvfs_module_context *ntvfs,
ret = pvfs_stream_read(pvfs, f->handle,
rd->readx.out.data, maxcnt, rd->readx.in.offset);
} else {
#if HAVE_LINUX_AIO
#ifdef HAVE_LINUX_AIO
/* possibly try an aio read */
if ((req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC) &&
(pvfs->flags & PVFS_FLAG_LINUX_AIO)) {
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/pvfs_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs,
wr->writex.in.count,
wr->writex.in.offset);
} else {
#if HAVE_LINUX_AIO
#ifdef HAVE_LINUX_AIO
/* possibly try an aio write */
if ((req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC) &&
(pvfs->flags & PVFS_FLAG_LINUX_AIO)) {
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/posix/vfs_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static void pvfs_setup_options(struct pvfs_state *pvfs)
PVFS_SEARCH_INACTIVITY,
PVFS_SEARCH_INACTIVITY_DEFAULT);

#if HAVE_XATTR_SUPPORT
#ifdef HAVE_XATTR_SUPPORT
if (share_bool_option(scfg, PVFS_XATTR, PVFS_XATTR_DEFAULT))
pvfs->flags |= PVFS_FLAG_XATTR_ENABLE;
#endif
Expand Down

0 comments on commit 4c4d588

Please sign in to comment.