Mercurial > pidgin.yaz
annotate finch/finch.pc.in @ 23995:85bed17fe5c1
The variable we use to keep track of the watcher of the ssl connection
should be unsigned. This isn't really a problem in Pidgin, where we
use glib's mainloop and GIOChannels because glib starts assigning the
handle IDs sequentially starting from 1.
But if an eventloop implementation ever returns a handle ID greater
than the largest possible signed integer (2,147,483,647) then we
won't be able to remove the watcher because purple_ssl_close() in
sslconn.c only removes it if inpa > 0, and since it interprets inpa
as a signed value then handles over 2,147,483,647 appear as negative
numbers.
I stumbled upon this when playing around with libevent, which can
use epoll. My implementation generated a random handle ID which
was sometimes greater than 2,147,483,647.
I don't believe this breaks binary compatibility. And I don't think
it breaks source compatibility, but I guess it might depend on what
compiler you're using.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 04 Sep 2008 18:04:29 +0000 |
parents | 389a51db740f |
children |
rev | line source |
---|---|
20326
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
1 prefix=@prefix@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
2 exec_prefix=@exec_prefix@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
3 libdir=@libdir@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
4 includedir=@includedir@ |
21455
389a51db740f
The order of these variable declarations is important if we want the
Stu Tomlinson <stu@nosnilmot.com>
parents:
21323
diff
changeset
|
5 datarootdir=@datarootdir@ |
20326
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
6 datadir=@datadir@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
7 sysconfdir=@sysconfdir@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
8 |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
9 Name: Finch |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
10 Description: Finch is an instant messenger application that uses libpurple for protocol support and ncurses (libgnt) for the UI. |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
11 Version: @VERSION@ |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
12 Requires: gnt purple |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
13 Cflags: -I${includedir}/finch |
8413368adb5a
applied changes from b5a4f36867889f85c7c9d341c9c295f2f4e51e1d
Luke Schierer <lschiere@pidgin.im>
parents:
diff
changeset
|
14 |