blob: ebfb8207a76dc8955b44a5fdfc547b278c10e68e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -130,14 +130,16 @@ void timersub(struct timeval *tvend, str
#include <errno.h>
-#ifdef SOLARIS
+#ifndef __BEGIN_DECLS
#define __BEGIN_DECLS
#define __END_DECLS
+#endif
#ifndef __P
#define __P(p) p
#endif
+#ifdef SOLARIS
#include <alloca.h>
#include <strings.h>
#include <pthread.h>
|