aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-09 10:21:45 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:45 -0700
commitfd46a87b9e1d032863c41f54009e5e6386862f8b (patch)
treed9eb25525e6fa4f8fe4f0e7b9ed6a83c8572b23f /Makefile
parent126ff5fb4364bdd6aed4f80e5feb1d402fbfae7a (diff)
downloadsparse-dev-fd46a87b9e1d032863c41f54009e5e6386862f8b.tar.gz
Remove stat-based file identity tests.
Replace it with a simple pathname comparison instead. The pathname check is not only portable (no need for any compatibility helper functions), but we can do it much earlier, and thus make the check much cheaper by avoiding three extra system calls when it triggers (open/fstat/close). And the pathname test seems to match all the cases anyway.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b6150ae9..687d0276 100644
--- a/Makefile
+++ b/Makefile
@@ -99,9 +99,9 @@ obfuscate.o: $(LIB_H)
example.o: $(LIB_H)
storage.o: $(LIB_H) storage.h
-compat-linux.o: compat/strtold.c compat/id-files-stat.c compat/mmap-blob.c \
+compat-linux.o: compat/strtold.c compat/mmap-blob.c \
$(LIB_H)
-compat-solaris.o: compat/id-files-stat.c compat/mmap-blob.c $(LIB_H)
+compat-solaris.o: compat/mmap-blob.c $(LIB_H)
compat-mingw.o: $(LIB_H)
compat-cygwin.o: $(LIB_H)