ports/devel/gdb/files/patch-include_libiberty.h
Luca Pizzamiglio da0888d129 devel/gdb: Update to gdb 8.0.1
Resolve tons of warnings.
Fix the type of literal string as char const *
Fix Makefile's variables order and adding the license file
Rework patches to make portlint happy

Reviewed by:	jhb
Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D12525
2017-09-29 14:49:58 +00:00

11 lines
557 B
C

--- include/libiberty.h 2017-09-14 09:28:17 UTC
+++ include/libiberty.h
@@ -109,7 +109,7 @@
|| defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
|| defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) \
|| defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
-extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
+#include <libgen.h>
#else
/* Do not allow basename to be used if there is no prototype seen. We
either need to use the above prototype or have one from