diff options
| author | pooka <pooka@NetBSD.org> | 2010-07-29 14:09:45 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2010-07-29 14:09:45 +0000 |
| commit | d9a3123e847c460ef8fd3b09f35eef46f2eb809b (patch) | |
| tree | 56a9aae85a83e87612200c90258c2fea4d4bce25 /libexec | |
| parent | 4f52188eb081ab3bb7af92b5dedd3c239e9ab51f (diff) | |
Do the semaphore trick only if the cleaner is run as a lib -- the
standard installation doesn't get linked against librt or libpthread.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/lfs_cleanerd/lfs_cleanerd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/lfs_cleanerd/lfs_cleanerd.c b/libexec/lfs_cleanerd/lfs_cleanerd.c index 0310d600d9c..5b44da99d7e 100644 --- a/libexec/lfs_cleanerd/lfs_cleanerd.c +++ b/libexec/lfs_cleanerd/lfs_cleanerd.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_cleanerd.c,v 1.24 2010/07/29 14:07:39 pooka Exp $ */ +/* $NetBSD: lfs_cleanerd.c,v 1.25 2010/07/29 14:09:45 pooka Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -1539,8 +1539,10 @@ lfs_cleaner_main(int argc, char **argv) * Main cleaning loop. */ loopcount = 0; +#ifdef LFS_CLEANER_AS_LIB if (semaddr) sem_post(semaddr); +#endif while (nfss > 0) { int cleaned_one; do { |
