diff options
author | Tom Kistner <tom@tahini.csx.cam.ac.uk> | 2011-03-26 08:46:42 +0000 |
---|---|---|
committer | Tom Kistner <tom@tahini.csx.cam.ac.uk> | 2011-03-26 08:46:42 +0000 |
commit | 29f20a41029cc5e36a8756ad8dfda64d0ed314ce (patch) | |
tree | c7841a1edc6aa29c615effa82f4bea8c86250c0a | |
parent | 4e7ee01264c430b044fd81cbc79a09ee0348d018 (diff) |
Avoid conflicting prototypes for strsignal()
-rw-r--r-- | src/src/osfunctions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/osfunctions.h b/src/src/osfunctions.h index 19b580860..a6cec0dc2 100644 --- a/src/src/osfunctions.h +++ b/src/src/osfunctions.h @@ -18,6 +18,11 @@ extern int os_getloadavg(void); extern void os_restarting_signal(int, void (*)(int)); extern void os_non_restarting_signal(int, void (*)(int)); extern const char *os_strexit(int); /* char to match os_strsignal */ + +/* When os_strsignal aliases to a system function, don't define an +additional prototype */ +#ifndef os_strsignal extern const char *os_strsignal(int); /* char to match strsignal in some OS */ +#endif /* End of osfunctions.h */ |