… | |
… | |
1583 | otherwise another method will be used as fallback. This is the preferred |
1583 | otherwise another method will be used as fallback. This is the preferred |
1584 | backend for BSD and BSD-like systems, although on most BSDs kqueue only |
1584 | backend for BSD and BSD-like systems, although on most BSDs kqueue only |
1585 | supports some types of fds correctly (the only platform we found that |
1585 | supports some types of fds correctly (the only platform we found that |
1586 | supports ptys for example was NetBSD), so kqueue might be compiled in, but |
1586 | supports ptys for example was NetBSD), so kqueue might be compiled in, but |
1587 | not be used unless explicitly requested. The best way to use it is to find |
1587 | not be used unless explicitly requested. The best way to use it is to find |
1588 | out wether kqueue supports your type of fd properly and use an embedded |
1588 | out whether kqueue supports your type of fd properly and use an embedded |
1589 | kqueue loop. |
1589 | kqueue loop. |
1590 | |
1590 | |
1591 | =item EV_USE_PORT |
1591 | =item EV_USE_PORT |
1592 | |
1592 | |
1593 | If defined to be C<1>, libev will compile in support for the Solaris |
1593 | If defined to be C<1>, libev will compile in support for the Solaris |
… | |
… | |
1673 | file. |
1673 | file. |
1674 | |
1674 | |
1675 | The usage in rxvt-unicode is simpler. It has a F<ev_cpp.h> header file |
1675 | The usage in rxvt-unicode is simpler. It has a F<ev_cpp.h> header file |
1676 | that everybody includes and which overrides some autoconf choices: |
1676 | that everybody includes and which overrides some autoconf choices: |
1677 | |
1677 | |
1678 | #define EV_USE_POLL 0 |
1678 | #define EV_USE_POLL 0 |
1679 | #define EV_MULTIPLICITY 0 |
1679 | #define EV_MULTIPLICITY 0 |
1680 | #define EV_PERIODICS 0 |
1680 | #define EV_PERIODICS 0 |
1681 | #define EV_CONFIG_H <config.h> |
1681 | #define EV_CONFIG_H <config.h> |
1682 | |
1682 | |
1683 | #include "ev++.h" |
1683 | #include "ev++.h" |
1684 | |
1684 | |
1685 | And a F<ev_cpp.C> implementation file that contains libev proper and is compiled: |
1685 | And a F<ev_cpp.C> implementation file that contains libev proper and is compiled: |
1686 | |
1686 | |
1687 | #include "rxvttoolkit.h" |
1687 | #include "ev_cpp.h" |
1688 | |
|
|
1689 | /* darwin has problems with its header files in C++, requiring this namespace juggling */ |
|
|
1690 | using namespace ev; |
|
|
1691 | |
|
|
1692 | #include "ev.c" |
1688 | #include "ev.c" |
1693 | |
|
|
1694 | |
1689 | |
1695 | =head1 AUTHOR |
1690 | =head1 AUTHOR |
1696 | |
1691 | |
1697 | Marc Lehmann <libev@schmorp.de>. |
1692 | Marc Lehmann <libev@schmorp.de>. |
1698 | |
1693 | |