Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/lib Only define DEF_LOG_DIR if it's not...



details:   https://anonhg.NetBSD.org/src/rev/5a4aa56de9ef
branches:  trunk
changeset: 526777:5a4aa56de9ef
user:      agc <agc%NetBSD.org@localhost>
date:      Fri May 10 13:17:57 2002 +0000

description:
Only define DEF_LOG_DIR if it's not already set.

diffstat:

 usr.sbin/pkg_install/lib/lib.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r de735be87805 -r 5a4aa56de9ef usr.sbin/pkg_install/lib/lib.h
--- a/usr.sbin/pkg_install/lib/lib.h    Fri May 10 11:07:01 2002 +0000
+++ b/usr.sbin/pkg_install/lib/lib.h    Fri May 10 13:17:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.h,v 1.37 2002/03/05 13:01:21 agc Exp $ */
+/* $NetBSD: lib.h,v 1.38 2002/05/10 13:17:57 agc Exp $ */
 
 /* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */
 
@@ -67,7 +67,10 @@
 #endif
 
 /* Where we put logging information by default, else ${PKG_DBDIR} if set */
+#ifndef DEF_LOG_DIR
 #define DEF_LOG_DIR            "/var/db/pkg"
+#endif
+
 /* just in case we change the environment variable name */
 #define PKG_DBDIR              "PKG_DBDIR"
 



Home | Main Index | Thread Index | Old Index