mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
Apple has no utsbuf.domainname (thanks to Volker Gering)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@806 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ static void my_uname(RESULT * result, RESULT * arg1)
|
||||
value = utsbuf.version;
|
||||
} else if (strcasecmp(key, "machine") == 0) {
|
||||
value = utsbuf.machine;
|
||||
#ifdef _GNU_SOURCE
|
||||
#if defined(_GNU_SOURCE) && ! defined(__APPLE__)
|
||||
} else if (strcasecmp(key, "domainname") == 0) {
|
||||
value = utsbuf.domainname;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user