|
Line 0
Link Here
|
|
|
1 |
--- sys/posix/posix_net.cpp.orig 2019-08-03 21:07:04 UTC |
| 2 |
+++ sys/posix/posix_net.cpp |
| 3 |
@@ -644,7 +644,7 @@ int idTCP::Read(void *data, int size) { |
| 4 |
return -1; |
| 5 |
} |
| 6 |
|
| 7 |
-#if defined(_GNU_SOURCE) |
| 8 |
+#if defined(_GNU_SOURCE) && !defined(__FreeBSD__) |
| 9 |
// handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific |
| 10 |
if ( ( nbytes = TEMP_FAILURE_RETRY( read( fd, data, size ) ) ) == -1 ) { |
| 11 |
#else |
| 12 |
@@ -701,7 +701,7 @@ int idTCP::Write(void *data, int size) { |
| 13 |
return -1; |
| 14 |
} |
| 15 |
|
| 16 |
-#if defined(_GNU_SOURCE) |
| 17 |
+#if defined(_GNU_SOURCE) && !defined(__FreeBSD__) |
| 18 |
// handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific |
| 19 |
if ( ( nbytes = TEMP_FAILURE_RETRY ( write( fd, data, size ) ) ) == -1 ) { |
| 20 |
#else |