git: 2fb025b854c1 - main - devel/folly: Fix build on aarch due to missing #include

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 18 Nov 2024 00:13:35 UTC
The branch main has been updated by yuri:

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

commit 2fb025b854c153fc0077fea98bb8c103ea92cb66
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-17 20:41:15 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-18 00:13:28 +0000

    devel/folly: Fix build on aarch due to missing #include
    
    Reported by:    fallout
---
 devel/folly/files/patch-folly_system_EnvUtil.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/devel/folly/files/patch-folly_system_EnvUtil.cpp b/devel/folly/files/patch-folly_system_EnvUtil.cpp
new file mode 100644
index 000000000000..c3e1c6fc9d6b
--- /dev/null
+++ b/devel/folly/files/patch-folly_system_EnvUtil.cpp
@@ -0,0 +1,13 @@
+- workaround for https://github.com/facebook/folly/pull/2338#issuecomment-2481533535
+
+--- folly/system/EnvUtil.cpp.orig	2024-11-17 20:11:35 UTC
++++ folly/system/EnvUtil.cpp
+@@ -22,6 +22,8 @@
+ #include <folly/portability/Stdlib.h>
+ #include <folly/portability/Unistd.h>
+ 
++#include <stdlib.h>
++
+ using namespace folly;
+ using namespace folly::experimental;
+