aboutsummaryrefslogtreecommitdiff
path: root/net/socat/patches/100-usleep.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net/socat/patches/100-usleep.patch')
-rw-r--r--net/socat/patches/100-usleep.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/socat/patches/100-usleep.patch b/net/socat/patches/100-usleep.patch
new file mode 100644
index 000000000..305eaf25c
--- /dev/null
+++ b/net/socat/patches/100-usleep.patch
@@ -0,0 +1,18 @@
+--- a/sycls.c
++++ b/sycls.c
+@@ -1329,6 +1329,7 @@ unsigned int Sleep(unsigned int seconds) {
+ return retval;
+ }
+
++#if 0
+ /* obsolete by POSIX.1-2001 */
+ void Usleep(unsigned long usec) {
+ Debug1("usleep(%lu)", usec);
+@@ -1336,6 +1337,7 @@ void Usleep(unsigned long usec) {
+ Debug("usleep() ->");
+ return;
+ }
++#endif
+
+ #if HAVE_NANOSLEEP
+ unsigned int Nanosleep(const struct timespec *req, struct timespec *rem) {