[exim-cvs] Avoid conflicting prototypes for strsignal()

Página superior

Responder a este mensaje
Autor: Exim Git Commits Mailing List
Fecha:  
A: exim-cvs
Asunto: [exim-cvs] Avoid conflicting prototypes for strsignal()
Gitweb: http://git.exim.org/exim.git/commitdiff/29f20a41029cc5e36a8756ad8dfda64d0ed314ce
Commit:     29f20a41029cc5e36a8756ad8dfda64d0ed314ce
Parent:     4e7ee01264c430b044fd81cbc79a09ee0348d018
Author:     Tom Kistner <tom@???>
AuthorDate: Sat Mar 26 08:46:42 2011 +0000
Committer:  Tom Kistner <tom@???>
CommitDate: Sat Mar 26 08:46:42 2011 +0000


    Avoid conflicting prototypes for strsignal()
---
 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 19b5808..a6cec0d 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 */