git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e7ee01
)
Avoid conflicting prototypes for strsignal()
author
Tom Kistner
<tom@tahini.csx.cam.ac.uk>
Sat, 26 Mar 2011 08:46:42 +0000
(08:46 +0000)
committer
Tom Kistner
<tom@tahini.csx.cam.ac.uk>
Sat, 26 Mar 2011 08:46:42 +0000
(08:46 +0000)
src/src/osfunctions.h
patch
|
blob
|
history
diff --git
a/src/src/osfunctions.h
b/src/src/osfunctions.h
index 19b5808607023f77b20ac0234e78baf1893273a6..a6cec0dc2f5a11bef0960d8a985f09d319b031fe 100644
(file)
--- 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 */
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 */
extern const char *os_strsignal(int); /* char to match strsignal in some OS */
+#endif
/* End of osfunctions.h */
/* End of osfunctions.h */