Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/sharefd_p.h
Show All 16 Lines | 1 | /*** | |||
---|---|---|---|---|---|
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | ***/ | 19 | ***/ | ||
20 | 20 | | |||
21 | #include <sys/un.h> | 21 | #include <sys/un.h> | ||
22 | #include <iostream> | 22 | #include <iostream> | ||
23 | #include <unistd.h> | 23 | #include <unistd.h> | ||
24 | #include <sys/socket.h> | 24 | #include <sys/socket.h> | ||
25 | #include <string.h> | ||||
25 | 26 | | |||
26 | // fix SOCK_NONBLOCK for e.g. macOS | 27 | // fix SOCK_NONBLOCK for e.g. macOS | ||
27 | #ifndef SOCK_NONBLOCK | 28 | #ifndef SOCK_NONBLOCK | ||
28 | #include <fcntl.h> | 29 | #include <fcntl.h> | ||
29 | #define SOCK_NONBLOCK O_NONBLOCK | 30 | #define SOCK_NONBLOCK O_NONBLOCK | ||
30 | #endif | 31 | #endif | ||
31 | 32 | | |||
32 | class SocketAddress | 33 | class SocketAddress | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |