]> git.webhop.me Git - lcd4linux.git/commitdiff
Apple has no utsbuf.domainname (thanks to Volker Gering)
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 17 Jun 2007 06:08:00 +0000 (06:08 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 17 Jun 2007 06:08:00 +0000 (06:08 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@806 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin_uname.c

index ecb034248e4e4696efcdecdff79b8da79c242b78..a1dce7de1ce1858d93821da1bda2d18d3724375f 100644 (file)
@@ -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