/[pkg-kde]/people/jriddell/KDE/3.5/kdenetwork/debian/patches/13_improve-libgadu-detection.diff
ViewVC logotype

Contents of /people/jriddell/KDE/3.5/kdenetwork/debian/patches/13_improve-libgadu-detection.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2225 - (show annotations) (download)
Sat Nov 12 20:32:22 2005 UTC (7 years, 6 months ago) by jriddell-guest
File size: 656 byte(s)
kdenetwork for kde 3.5 rc 1
1 --- kdenetwork/kopete/protocols/configure.in.in
2 +++ kdenetwork/kopete/protocols/configure.in.in
3 @@ -42,8 +42,20 @@
4 int main()
5 {
6 #if defined __GG_LIBGADU_HAVE_PTHREAD && defined GG_LOGIN60
7 - int maj, min, date;
8 - sscanf( gg_libgadu_version(), "%u.%u.%u", &maj,&min,&date );
9 + int maj, min, date, items;
10 + const char *libgadu_version = gg_libgadu_version();
11 +
12 + items = sscanf( libgadu_version, "%u.%u.%u", &maj,&min,&date );
13 +
14 + if ( items != 3 ) { /* version in YYYYDDMM format only */
15 + sscanf( libgadu_version, "%u", &date );
16 +
17 + if ( date < 20040520 )
18 + return 1;
19 + else
20 + return 0;
21 + }
22 +
23 if ( maj != 1 ) {
24 return 1;
25 }

  ViewVC Help
Powered by ViewVC 1.1.5