Wireshark-commits: [Wireshark-commits] rev 44811: /trunk/ /trunk/: version_info.c

Date: Sat, 08 Sep 2012 07:04:13 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=44811

User: guy
Date: 2012/09/08 12:04 AM

Log:
 Mountain Lion marks Gestalt() as deprecated, which causes the build to
 fail on Mountain Lion with the default -W flags, but no replacement API
 was specified.  Fall back on dredging information out of
 /System/Library/CoreServices/SystemVersion.plist; this also lets us get
 the OS build version.
 
 (In theory, we could calculate the OS version from the Darwin version
 for everything except 10.0:
 
 	12.x.x  OS X 10.8.x Mountain Lion
 	11.x.x  OS X 10.7.x Lion
 	10.x.x  OS X 10.6.x Snow Leopard
 	 9.x.x  OS X 10.5.x Leopard
 	 8.x.x  OS X 10.4.x Tiger
 	 7.x.x  OS X 10.3.x Panther
 	 6.x.x  OS X 10.2.x Jaguar
 	 5.x    OS X 10.1.x Puma
 
 and could get the build number as "kern.osversion" from sysctl.)

Directory: /trunk/
  Changes    Path              Action
  +131 -28   version_info.c    Modified