… | |
… | |
27 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | */ |
30 | */ |
31 | |
31 | |
32 | /* for broken bsd's */ |
|
|
33 | #include <sys/time.h> |
|
|
34 | #include <sys/types.h> |
|
|
35 | #include <unistd.h> |
|
|
36 | |
|
|
37 | /* for unix systems */ |
32 | /* for unix systems */ |
38 | #ifndef WIN32 |
33 | #ifdef WIN32 |
|
|
34 | typedef unsigned int uint32_t; |
|
|
35 | #else |
39 | # include <sys/select.h> |
36 | # include <sys/select.h> |
|
|
37 | # include <inttypes.h> |
40 | #endif |
38 | #endif |
41 | |
39 | |
42 | #include <string.h> |
40 | #include <string.h> |
43 | #include <inttypes.h> |
|
|
44 | |
41 | |
45 | static void |
42 | static void |
46 | select_modify (EV_P_ int fd, int oev, int nev) |
43 | select_modify (EV_P_ int fd, int oev, int nev) |
47 | { |
44 | { |
48 | int offs = fd >> 3; |
45 | int offs = fd >> 3; |