Changeset 25b5a4a
- Timestamp:
- 2010-10-03T03:03:19Z (14 years ago)
- Branches:
- master
- Children:
- 508588a
- Parents:
- 04f0c10
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/events.h
r04f0c10 r25b5a4a 81 81 G_MODULE_EXPORT void b_event_remove(gint id); 82 82 83 /* For now, closesocket() is only a function when using libevent. With GLib 84 it's a preprocessor macro. */ 85 #ifdef EVENTS_LIBEVENT 83 /* With libevent, this one also cleans up event handlers if that wasn't already 84 done (the caller is expected to do so but may miss it sometimes). */ 86 85 G_MODULE_EXPORT void closesocket(int fd); 87 #endif88 86 89 87 #endif /* _EVENTS_H_ */ -
lib/events_glib.c
r04f0c10 r25b5a4a 147 147 g_source_remove(tag); 148 148 } 149 150 void closesocket( int fd ) 151 { 152 close( fd ); 153 } -
sock.h
r04f0c10 r25b5a4a 11 11 #define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0) 12 12 #define sockerr_again() (errno == EINPROGRESS || errno == EINTR) 13 #ifndef EVENTS_LIBEVENT14 #define closesocket(a) close(a)15 #else16 13 void closesocket( int fd ); 17 #endif18 14 #else 19 15 # include <winsock2.h>
Note: See TracChangeset
for help on using the changeset viewer.