git: d0d6380785d3 - 2023Q1 - math/or-tools: Patch missing #include <errno.h> problem

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 07 Jan 2023 08:49:54 UTC
The branch 2023Q1 has been updated by yuri:

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

commit d0d6380785d3c31c9e89f4db94154a3b4758cb0b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-07 08:48:31 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-07 08:49:49 +0000

    math/or-tools: Patch missing #include <errno.h> problem
    
    It caused breakage on FreeBSD 12.
    
    Reported by:    portscout
    
    (cherry picked from commit f233efc3f36269fb570677e3b2ee9dace1ec7dd7)
---
 math/or-tools/files/patch-ortools_base_numbers.cc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/math/or-tools/files/patch-ortools_base_numbers.cc b/math/or-tools/files/patch-ortools_base_numbers.cc
new file mode 100644
index 000000000000..0fb41bd3adc4
--- /dev/null
+++ b/math/or-tools/files/patch-ortools_base_numbers.cc
@@ -0,0 +1,13 @@
+- workaround for https://github.com/google/or-tools/issues/3622
+
+--- ortools/base/numbers.cc.orig	2023-01-07 08:24:55 UTC
++++ ortools/base/numbers.cc
+@@ -23,6 +23,8 @@
+ #include <memory>
+ #include <string>
+ 
++#include <errno.h>
++
+ // #include "ortools/base/logging.h"
+ #include "absl/strings/ascii.h"
+ #include "ortools/base/strtoint.h"