Differences From Artifact [83754f70d8]:
- File
src/OFUDPSocket.m
— part of check-in
[b4cd87cd81]
at
2017-05-21 23:57:34
on branch trunk
— Use closesocket() instead of close()
Previously, socket_helpers.h would just define close() to whatever is
needed to close a socket. However, this makes it possible to
accidentally call a socket-specific close on something that is not a
socket. Having to explicitly call closesocket() (and defining it to
close() on platforms where it's the same) prevents this. (user: js, size: 14549) [annotate] [blame] [check-ins using]
To Artifact [a9d215ce51]:
- File src/OFUDPSocket.m — part of check-in [1287e77e04] at 2017-05-22 23:31:26 on branch trunk — Make includes of unistd.h and fcntl.h conditional (user: js, size: 14577) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 | #include "config.h" #include <assert.h> #include <errno.h> #include <string.h> | > | > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #include "config.h" #include <assert.h> #include <errno.h> #include <string.h> #ifdef HAVE_FCNTL_H # include <fcntl.h> #endif #import "OFUDPSocket.h" #ifdef OF_HAVE_THREADS # import "OFThread.h" #endif #import "OFRunLoop.h" #import "OFRunLoop+Private.h" |
︙ | ︙ |