]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
undefined reference to `unlinkdUnlink' when --disable-unlinkd is used.
authorwessels <>
Sun, 4 Mar 2001 08:12:13 +0000 (08:12 +0000)
committerwessels <>
Sun, 4 Mar 2001 08:12:13 +0000 (08:12 +0000)
src/fs/diskd/store_dir_diskd.cc
src/fs/ufs/store_dir_ufs.cc

index 0b93c8c187a947c168405e78ed324e8510309d26..24bfa71b47276aa25f7a5a20a9d7899163b29ce4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_diskd.cc,v 1.45 2001/03/03 10:39:38 hno Exp $
+ * $Id: store_dir_diskd.cc,v 1.46 2001/03/04 01:12:13 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -1594,7 +1594,13 @@ storeDiskdDirUnlinkFile(SwapDir * SD, sfileno f)
 {
     debug(79, 3) ("storeDiskdDirUnlinkFile: unlinking fileno %08X\n", f);
     /* storeDiskdDirMapBitReset(SD, f); */
+#if USE_UNLINKD
     unlinkdUnlink(storeDiskdDirFullPath(SD, f, NULL));
+#elif USE_TRUNCATE
+    truncate(storeDiskdDirFullPath(SD, f, NULL), 0);
+#else
+    unlink(storeDiskdDirFullPath(SD, f, NULL));
+#endif
 }
 
 /*
index f9abeeda63358640ad331ba6fd3738ff3a006e93..6e71dff2db827d6562fb6efe57af84b2d195f0a6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.31 2001/03/03 10:39:39 hno Exp $
+ * $Id: store_dir_ufs.cc,v 1.32 2001/03/04 01:12:16 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -1407,7 +1407,13 @@ storeUfsDirUnlinkFile(SwapDir * SD, sfileno f)
 {
     debug(79, 3) ("storeUfsDirUnlinkFile: unlinking fileno %08X\n", f);
     /* storeUfsDirMapBitReset(SD, f); */
+#if USE_UNLINKD
     unlinkdUnlink(storeUfsDirFullPath(SD, f, NULL));
+#elif USE_TRUNCATE
+    truncate(storeUfsDirFullPath(SD, f, NULL), 0);
+#else
+    unlink(storeUfsDirFullPath(SD, f, NULL));
+#endif
 }
 
 /*