diff options
author | Marcin Deranek <marcin.deranek@slonko.net> | 2023-12-09 13:23:29 +0100 |
---|---|---|
committer | Marcin Deranek <marcin.deranek@slonko.net> | 2023-12-09 13:31:17 +0100 |
commit | b49858b724d2ab352f93db399822428f84e05d31 (patch) | |
tree | 344550293bfdef4b0f74bda1f3667c98bfca250c /dev-libs/fastText/files/gcc-13.patch | |
parent | 9d4745761e229c96d0db05b280789a1dc335eeac (diff) | |
download | portage-b49858b724d2ab352f93db399822428f84e05d31.tar.gz portage-b49858b724d2ab352f93db399822428f84e05d31.tar.bz2 portage-b49858b724d2ab352f93db399822428f84e05d31.zip |
dev-libs/fastText gcc-13 patch
Diffstat (limited to 'dev-libs/fastText/files/gcc-13.patch')
-rw-r--r-- | dev-libs/fastText/files/gcc-13.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/fastText/files/gcc-13.patch b/dev-libs/fastText/files/gcc-13.patch new file mode 100644 index 0000000..0f895f4 --- /dev/null +++ b/dev-libs/fastText/files/gcc-13.patch @@ -0,0 +1,34 @@ +From 6c2204ba66776b700095ff73e3e599a908ffd9c3 Mon Sep 17 00:00:00 2001 +From: Cherilyn Buren <88433283+NiuBlibing@users.noreply.github.com> +Date: Mon, 27 Nov 2023 15:41:10 -0800 +Subject: [PATCH] fix compile error with gcc13 #1281 (#1340) + +Summary: +Due to[ header dependency changes](https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes) in GCC 13, we need to include the <cstdint> header. + +Pull Request resolved: https://github.com/facebookresearch/fastText/pull/1340 + +Reviewed By: jmp84 + +Differential Revision: D51602433 + +Pulled By: alexkosau + +fbshipit-source-id: cc9bffb276cb00f1db8ec97a36784c484ae4563a +--- + src/args.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/args.cc b/src/args.cc +index 313e9816e..5f65f6693 100644 +--- a/src/args.cc ++++ b/src/args.cc +@@ -9,6 +9,7 @@ + #include "args.h" + +-#include <stdlib.h> ++#include <cstdlib> ++#include <cstdint> + + #include <iostream> + #include <stdexcept> |