mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
treewide: drop nanosleep patches related to uClibc-ng
These all patches were related to uClibc-ng
according to this commit [1]. uClibc-ng was
removed in OpenWrt main repo, so these patches
are not needed anymore. They could not be even
applied by `git am`, so there is difficult to find
who authored it, if it was upstreamed (most likely not).
[1] c1a9e69fef ("libreswan: Replace usleep with nanosleep")
[2] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=63fb175203bbf3b336804587c2f5b3a2d8132ec1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lpc21isp
|
||||
PKG_VERSION:=197
|
||||
PKG_RELEASE:=6
|
||||
PKG_RELEASE:=7
|
||||
PKG_LICENSE:=LGPL-3.0-or-later
|
||||
PKG_LICENSE_FILES:=README gpl.txt lgpl-3.0.txt
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/lpc21isp.c
|
||||
+++ b/lpc21isp.c
|
||||
@@ -1130,7 +1130,8 @@ void ClearSerialPortBuffers(ISP_ENVIRONM
|
||||
*/
|
||||
void Sleep(unsigned long MilliSeconds)
|
||||
{
|
||||
- usleep(MilliSeconds*1000); //convert to microseconds
|
||||
+ struct timespec m = { MilliSeconds / 1000 , (MilliSeconds % 1000 ) * 1000 * 1000};
|
||||
+ nanosleep(&m, &m); //convert to nanoseconds
|
||||
}
|
||||
#endif // defined COMPILE_FOR_LINUX
|
||||
|
||||
Reference in New Issue
Block a user