| 1 | |
| 2 | |
| 3 | |
| 4 | * Copyright (C) 2005 - 2008 Jaco Kroon |
| 5 | */ |
| 6 | |
| 7 | +#ifdef __GLIBC__ |
| 8 | + |
| 9 | #if defined(HAVE_CONFIG_H) |
| 10 | #include "config.h" |
| 11 | #endif |
| 12 | |
| 13 | static void __attribute((constructor)) init(void) { |
| 14 | setup_sigsegv(); |
| 15 | } |
| 16 | +#endif |
| 17 | + |
| 18 | +#else |
| 19 | + |
| 20 | +int setup_sigsegv() { |
| 21 | + return 1; |
| 22 | +} |
| 23 | + |
| 24 | #endif |