openbsd-ports/lang/gcc/4.6/patches/patch-gcc_ada_adaint_c
pascal 378165bc9a Fix -ada build by providing a dummy fname_as_string() in gnat, missed in the
previous commit when enabling ssp.

Reported and fix tested by naddy@.
2012-02-21 08:09:30 +00:00

14 lines
342 B
Plaintext

$OpenBSD: patch-gcc_ada_adaint_c,v 1.1 2012/02/21 08:09:30 pascal Exp $
--- gcc/ada/adaint.c.orig Mon Feb 20 20:25:53 2012
+++ gcc/ada/adaint.c Mon Feb 20 20:27:23 2012
@@ -3686,3 +3686,9 @@ void *__gnat_lwp_self (void)
return (void *) syscall (__NR_gettid);
}
#endif
+
+const char *
+fname_as_string(int pretty_p)
+{
+ return NULL;
+}