Index: commons-daemon-1.2.2-src/src/native/unix/configure
===================================================================
--- commons-daemon-1.2.2-src.orig/src/native/unix/configure
+++ commons-daemon-1.2.2-src/src/native/unix/configure
@@ -3332,6 +3332,10 @@ $as_echo "failed" >&6; }
supported_os="aarch64"
HOST_CPU=aarch64
;;
+ riscv64)
+ CFLAGS="$CFLAGS -DCPU=\\\"riscv64\\\""
+ HOST_CPU=$host_cpu
+ ;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
$as_echo "failed" >&6; }
Index: commons-daemon-1.2.2-src/src/native/unix/support/apsupport.m4
--- commons-daemon-1.2.2-src.orig/src/native/unix/support/apsupport.m4
+++ commons-daemon-1.2.2-src/src/native/unix/support/apsupport.m4
@@ -192,6 +192,10 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
AC_MSG_RESULT([failed])
AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);;