Files
macports-ports/devel/libedit/files/src__sys.h.patch

19 lines
478 B
Diff

--- src/sys.h.orig 2022-10-09 23:16:55.000000000 +1100
+++ src/sys.h 2022-10-22 15:58:52.000000000 +1100
@@ -96,6 +96,7 @@ size_t strlcpy(char *dst, const char *sr
#endif
#ifndef HAVE_GETLINE
+#include <sys/types.h>
//#define getline libedit_getline
ssize_t getline(char **line, size_t *len, FILE *fp);
#endif
@@ -105,6 +106,7 @@ int reallocarr(void *ptr, size_t number,
#endif
#ifndef HAVE_WCSDUP
+#include <wchar.h>
wchar_t * wcsdup(const wchar_t *str);
#endif