diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-21 23:09:43 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-21 23:09:43 +0000 |
commit | 35d3c10d81acca2eb485e3cfe716aa33c73510ca (patch) | |
tree | fe4336413e505e8ed7ad07048d9ae748a483264a | |
parent | e8c45fbd58c65a5a13663cbc26151830ceeeb94f (diff) | |
download | lighttpd-git-35d3c10d81acca2eb485e3cfe716aa33c73510ca.tar.gz |
on SEGFAULT tell were we where
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@603 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/bitset.c | 1 | ||||
-rw-r--r-- | src/buffer.h | 2 | ||||
-rw-r--r-- | src/http_auth.c | 1 | ||||
-rw-r--r-- | src/mod_rrdtool.c | 1 | ||||
-rw-r--r-- | src/mod_ssi.c | 1 | ||||
-rw-r--r-- | src/mod_staticfile.c | 1 |
6 files changed, 6 insertions, 1 deletions
diff --git a/src/bitset.c b/src/bitset.c index e40bea04..7fe5662e 100644 --- a/src/bitset.c +++ b/src/bitset.c @@ -1,6 +1,7 @@ #include <limits.h> #include <stdlib.h> #include <string.h> +#include <stdio.h> #include <assert.h> #include "bitset.h" diff --git a/src/buffer.h b/src/buffer.h index 5db0bccc..0f77664a 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -117,7 +117,7 @@ int light_isalnum(int c); #define CONST_BUF_LEN(x) x->ptr, x->used - 1 -#define SEGFAULT() abort() +#define SEGFAULT() do { fprintf(stderr, "%s.%d: aborted\n", __FILE__, __LINE__); abort(); } while(0) #define UNUSED(x) ( (void)(x) ) #endif diff --git a/src/http_auth.c b/src/http_auth.c index 9434a5fa..a08f9083 100644 --- a/src/http_auth.c +++ b/src/http_auth.c @@ -16,6 +16,7 @@ #include <fcntl.h> #include <stdlib.h> +#include <stdio.h> #include <string.h> #include <time.h> #include <errno.h> diff --git a/src/mod_rrdtool.c b/src/mod_rrdtool.c index fd0d1071..c7b897a2 100644 --- a/src/mod_rrdtool.c +++ b/src/mod_rrdtool.c @@ -3,6 +3,7 @@ #include <fcntl.h> #include <stdlib.h> +#include <stdio.h> #include <string.h> #include <unistd.h> #include <errno.h> diff --git a/src/mod_ssi.c b/src/mod_ssi.c index e9312e4e..80d2ecad 100644 --- a/src/mod_ssi.c +++ b/src/mod_ssi.c @@ -2,6 +2,7 @@ #include <ctype.h> #include <stdlib.h> +#include <stdio.h> #include <string.h> #include <errno.h> #include <time.h> diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c index 358fe0dc..8a11d717 100644 --- a/src/mod_staticfile.c +++ b/src/mod_staticfile.c @@ -1,5 +1,6 @@ #include <ctype.h> #include <stdlib.h> +#include <stdio.h> #include <string.h> #include <time.h> |