projects/aports·blob master · refs

17 lines · 535 B

1POSIX requires libgen.h to be included for the basename function prototype.
2
3See https://gitlab.alpinelinux.org/alpine/aports/-/issues/16103
4
5diff -upr testdisk-7.2.orig/src/hdaccess.c testdisk-7.2/src/hdaccess.c
6--- testdisk-7.2.orig/src/hdaccess.c 2024-05-12 11:35:59.137491246 +0200
7+++ testdisk-7.2/src/hdaccess.c 2024-05-12 11:36:51.334218946 +0200
8@@ -48,6 +48,9 @@
9 #ifdef HAVE_STRING_H
10 #include <string.h>
11 #endif
12+#ifdef HAVE_LIBGEN_H
13+#include <libgen.h>
14+#endif
15 #ifdef HAVE_FCNTL_H
16 #include <fcntl.h> /* open */
17 #endif