]> git.saurik.com Git - apple/libc.git/blob - sys/OpenBSD/stack_protector.c.patch
64c5df1b35726467c81078386819aa7154259d9d
[apple/libc.git] / sys / OpenBSD / stack_protector.c.patch
1 --- stack_protector.c.orig 2006-10-05 00:09:07.000000000 -0700
2 +++ stack_protector.c 2006-10-05 00:18:28.000000000 -0700
3 @@ -34,10 +34,10 @@
4 #include <syslog.h>
5
6 long __guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
7 -static void __guard_setup(void) __attribute__ ((constructor));
8 +__private_extern__ void __guard_setup(void);
9 void __stack_smash_handler(char func[], int damaged __attribute__((unused)));
10
11 -static void
12 +__private_extern__ void
13 __guard_setup(void)
14 {
15 int fd;