aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-10-27 12:27:00 -0700
committerDmitry Shmidt <dimitrysh@google.com>2011-10-27 12:27:00 -0700
commit75d23348894a57d2fda048cfd71a198f9c3ba59f (patch)
tree63b412c4985102273837832c646ec28ee9f2b9bd
parent0d3a47d979ac35a49b2a2da9e80e16bd37aab877 (diff)
downloadexternal_dhcpcd-75d23348894a57d2fda048cfd71a198f9c3ba59f.zip
external_dhcpcd-75d23348894a57d2fda048cfd71a198f9c3ba59f.tar.gz
external_dhcpcd-75d23348894a57d2fda048cfd71a198f9c3ba59f.tar.bz2
dhcpcd: Use "old style" vendor id for compatibility
Change-Id: If327f1511c740caf377357668b2af698ec8dacab Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r--if-options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/if-options.c b/if-options.c
index 4dd907b..9e77f2b 100644
--- a/if-options.c
+++ b/if-options.c
@@ -793,6 +793,7 @@ read_config(const char *file,
ifo->hostname[0] = '\0';
platform = hardware_platform();
+#ifndef ANDROID
if (uname(&utn) == 0)
ifo->vendorclassid[0] = snprintf((char *)ifo->vendorclassid + 1,
VENDORCLASSID_MAX_LEN,
@@ -800,6 +801,7 @@ read_config(const char *file,
utn.sysname, utn.release, utn.machine,
platform ? ":" : "", platform ? platform : "");
else
+#endif
ifo->vendorclassid[0] = snprintf((char *)ifo->vendorclassid + 1,
VENDORCLASSID_MAX_LEN, "%s-%s", PACKAGE, VERSION);