diff options
author | Vladimir Druzenko <vvd@FreeBSD.org> | 2024-09-13 01:50:33 +0300 |
---|---|---|
committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2024-09-13 01:50:33 +0300 |
commit | 59df34eab546d798306c2abd064f5536cc70e8ed (patch) | |
tree | 811d2b5f5da2ace5936e5895de02cf91a5c8703f | |
parent | net/miniupnpd: Update 2.3.6 → 2.3.7 (diff) |
devel/kBuild: fix build with GCC14
- fix detect gettimeofday
- fix "unlink" and "string functions" in "sed"
PR: 281190
Reported by: exp-run (antoine)
-rw-r--r-- | devel/kBuild/files/patch-src_kmk_configure.in | 10 | ||||
-rw-r--r-- | devel/kBuild/files/patch-src_sed_lib_utils.h | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/devel/kBuild/files/patch-src_kmk_configure.in b/devel/kBuild/files/patch-src_kmk_configure.in new file mode 100644 index 000000000000..e04b5458aa73 --- /dev/null +++ b/devel/kBuild/files/patch-src_kmk_configure.in @@ -0,0 +1,10 @@ +--- src/kmk/configure.in.orig 2017-07-18 19:08:54 UTC ++++ src/kmk/configure.in +@@ -134,6 +134,7 @@ AC_CACHE_CHECK([for standard gettimeofday], ac_cv_func + AC_CACHE_CHECK([for standard gettimeofday], ac_cv_func_gettimeofday, + [ac_cv_func_gettimeofday=no + AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/time.h> ++#include <stdlib.h> + int main () + { + struct timeval t; t.tv_sec = -1; t.tv_usec = -1; diff --git a/devel/kBuild/files/patch-src_sed_lib_utils.h b/devel/kBuild/files/patch-src_sed_lib_utils.h new file mode 100644 index 000000000000..7448a9dd124c --- /dev/null +++ b/devel/kBuild/files/patch-src_sed_lib_utils.h @@ -0,0 +1,11 @@ +--- src/sed/lib/utils.h.orig 2017-07-18 19:08:55 UTC ++++ src/sed/lib/utils.h +@@ -17,6 +17,8 @@ + Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + #include <stdio.h> ++#include <string.h> ++#include <unistd.h> + + #include "basicdefs.h" + |