git: 0f6c39590217 - main - sysutils/bareos17-client: fix build

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 18 Nov 2021 21:17:31 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0f6c39590217a05c9b03f47b884571402106d4e5

commit 0f6c39590217a05c9b03f47b884571402106d4e5
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-18 16:17:04 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-18 20:51:08 +0000

    sysutils/bareos17-client: fix build
    
    Approved by:    porgmgr blanket
---
 sysutils/bareos17-server/files/patch-src-lib_bsnprintf.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sysutils/bareos17-server/files/patch-src-lib_bsnprintf.c b/sysutils/bareos17-server/files/patch-src-lib_bsnprintf.c
index 4787e1c416a2..41d818ca489f 100644
--- a/sysutils/bareos17-server/files/patch-src-lib_bsnprintf.c
+++ b/sysutils/bareos17-server/files/patch-src-lib_bsnprintf.c
@@ -1,6 +1,6 @@
---- src/lib/bsnprintf.c	2021-08-04 23:06:43.246164000 -0500
-+++ src/lib/bsnprintf.c	2021-08-04 23:07:16.549429000 -0500
-@@ -618,6 +618,7 @@
+--- src/lib/bsnprintf.c.orig	2021-11-18 14:05:23 UTC
++++ src/lib/bsnprintf.c
+@@ -618,6 +618,7 @@ static LDOUBLE pow10(int exp)
     return result;
  }
  
@@ -8,10 +8,12 @@
  static int64_t round(LDOUBLE value)
  {
     int64_t intpart;
-@@ -629,6 +630,7 @@
+@@ -629,6 +630,9 @@ static int64_t round(LDOUBLE value)
  
     return intpart;
  }
++#else
++#include <math.h>
 +#endif
  
  static int32_t fmtfp(char *buffer, int32_t currlen, int32_t maxlen,