diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-11-15 03:42:50 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-11-15 04:05:53 +0000 |
commit | e11a55dee1f5ad36bfb6f5a9b2484ef63522df41 (patch) | |
tree | 880893a4d9471490910de994d7eebb733a51fcac /Makefile | |
parent | 1567a0746ca0083fe43c95a725a69228929ff9a3 (diff) | |
download | pcu-e11a55dee1f5ad36bfb6f5a9b2484ef63522df41.tar.gz |
pcu-fsync: add support for syncfs() on Linux (-f flag)
Sometimes it is useful to just commit a single filesystem. This transparently falls back to using sync(2) if syncfs(2) is not available.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ pcu-fsync: fsync.c compat-util.h PCU_BIN := pcu-fadvise pcu-mincore pcu-fsync +pcu-fsync: LDFLAGS += -ldl + $(PCU_BIN): $(CC) $(CFLAGS) $(LDFLAGS) -o $@+ $< mv $@+ $@ |