mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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 =======================================================================
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user