xmlrpc-c: Update to 1.51.03

Small Makefile reorganization.

Switch BUILD_PARALLEL to 1. Seems to work now.

Added nanosleep patch that replaces usleep usage.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-08-23 13:41:20 -07:00
parent 8fecab45bd
commit 473356a562
4 changed files with 24 additions and 30 deletions
@@ -1,11 +0,0 @@
--- a/config.mk.in
+++ b/config.mk.in
@@ -176,7 +176,7 @@ ifeq ($(patsubst linux-gnu%,linux-gnu,$(
shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN))
shliblefn = $(1:%=%.$(SHLIB_SUFFIX))
# SHLIB_CLIB = -lc
- LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB)
+ LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB) $(LDFLAGS)
CFLAGS_SHLIB=-fPIC
endif
@@ -1,13 +0,0 @@
--- a/configure.in
+++ b/configure.in
@@ -223,9 +223,7 @@ dnl Checks for programs.
dnl =======================================================================
AC_PROG_CC
-if test x"$enable_cplusplus" != xno; then
- AC_PROG_CXX
-fi
+AC_PROG_CXX
dnl =======================================================================
+20
View File
@@ -0,0 +1,20 @@
--- a/lib/libutil/sleep.c
+++ b/lib/libutil/sleep.c
@@ -8,7 +8,7 @@
# include <windows.h>
# include <process.h>
#else
-# include <unistd.h>
+# include <time.h>
#endif
@@ -18,6 +18,7 @@ xmlrpc_millisecond_sleep(unsigned int const milliseconds) {
#if MSVCRT
SleepEx(milliseconds, true);
#else
- usleep(milliseconds * 1000);
+ const struct timespec req = {0, milliseconds * 1000 * 1000};
+ nanosleep(&req, NULL);
#endif
}