]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
SMALL target removes the custom logger.
authorRoy Marples <roy@marples.name>
Fri, 16 Sep 2016 16:21:17 +0000 (16:21 +0000)
committerRoy Marples <roy@marples.name>
Fri, 16 Sep 2016 16:21:17 +0000 (16:21 +0000)
README
common.h

diff --git a/README b/README
index ec3e0df822ce0c6cbd6b97eb9908fc4aaf0a4e06..893aba8ddc4235c9a2fae1aac2571160444dfb35 100644 (file)
--- a/README
+++ b/README
@@ -16,7 +16,8 @@ To compile small dhcpcd, maybe to be used for installation media where
 size is a concern, you can use the --small configure option to enable
 a reduced feature set within dhcpcd.
 Currently this just removes non important options out of
-dhcpcd-definitions.conf and removes support for DHCPv6 Prefix Delegation.
+dhcpcd-definitions.conf, the custom logger and
+support for DHCPv6 Prefix Delegation.
 Other features maybe dropped as and when required.
 
 If you're cross compiling you may need set the platform if OS is different
index da9aea9627b97d2827c14616c4a9b4d0fb2640f1..2465587420dc5d0b0b97b17c069aa561356be0f8 100644 (file)
--- a/common.h
+++ b/common.h
@@ -165,6 +165,10 @@ int get_monotonic(struct timespec *);
  * However, this results in a ugly output on the command line
  * and relies on syslogd(8) starting before dhcpcd which is not
  * always the case. */
+#ifdef SMALL
+# undef USE_LOGFILE
+# define USE_LOGFILE 0
+#endif
 #ifndef USE_LOGFILE
 # define USE_LOGFILE 1
 #endif