diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2011-08-08 13:01:12 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2011-08-08 13:01:12 +0000 |
commit | f36e099b0c38c644d92840727fc93eddf711a73f (patch) | |
tree | cb12c8b1439b33c07c3576c6a852a8469e577d50 /www/analog/files/patch-ab | |
parent | - Update to 0.9.3 (diff) |
- Teach it about recent Windows versions
PR: ports/159360
Submitted by: Kurt Lidl <kurt.lidl@cello.com>
Notes
Notes:
svn path=/head/; revision=279216
Diffstat (limited to 'www/analog/files/patch-ab')
-rw-r--r-- | www/analog/files/patch-ab | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/www/analog/files/patch-ab b/www/analog/files/patch-ab index 7f4a5505e436..d8e0734783e6 100644 --- a/www/analog/files/patch-ab +++ b/www/analog/files/patch-ab @@ -1,5 +1,5 @@ --- src/tree.c.orig 2004-12-19 08:51:31.000000000 -0500 -+++ src/tree.c 2011-05-12 16:38:50.388298051 -0400 ++++ src/tree.c 2011-08-01 12:49:29.176805068 -0400 @@ -769,11 +769,13 @@ if (((*name = strstr(whole, "Mosaic")) != NULL && (len = 6)) || ((*name = strstr(whole, "mosaic")) != NULL && (len = 6)) || @@ -14,7 +14,26 @@ ((*name = strstr(whole, "Camino")) != NULL && (len = 6)) || ((*name = strstr(whole, "Safari")) != NULL && (len = 6)) || ((*name = strstr(whole, "WebTV")) != NULL && (len = 5)) || -@@ -904,8 +906,16 @@ +@@ -871,7 +873,17 @@ + else + *name = "Windows:Unknown Windows"; + } +- else if (*c >= '6' && *c <= '9') ++ else if (*c == '6') { ++ if (*(c + 1) == '.' && (*(c + 2) == '0')) ++ *name = "Windows:Windows Vista"; ++ else if (*(c + 1) == '.' && (*(c + 2) == '1')) ++ *name = "Windows:Windows 7"; ++ else if (*(c + 1) == '.' && (*(c + 2) == '2')) ++ *name = "Windows:Windows 8"; ++ else ++ *name = "Windows:Unknown Windows"; ++ } ++ else if (*c >= '7' && *c <= '9') + *name = "Windows:Unknown Windows"; + else + *name = "Windows:Windows NT"; +@@ -904,8 +916,16 @@ *name = "Macintosh"; else if (strstr(whole, "Linux") != NULL || strstr(whole, "linux") != NULL) *name = "Unix:Linux"; |