[Asterisk-Dev] __PMT use in db1-ast

Thorsten Lockert tholo at sigmasoft.com
Wed Apr 23 12:59:41 MST 2003


This diff lets the Berkeley DB code build in systems that do not
define the __PMT macro

Index: db1-ast/include/compat.h
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/include/compat.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 compat.h
--- db1-ast/include/compat.h	12 Feb 2003 13:59:15 -0000	1.1.1.1
+++ db1-ast/include/compat.h	23 Apr 2003 20:06:27 -0000
@@ -45,5 +45,16 @@
 #define	MIN(_a,_b)	((_a)<(_b)?(_a):(_b))
 #endif
 
+#ifndef __PMT
+#ifdef __P
+#define __PMT(proto) __P(proto)
+#else
+#if __STDC__
+#define __PMT(proto) proto
+#else
+#define __PMT(proto) ()
+#endif
+#endif
+#endif
 
 #endif /* compat.h */
--
Thorsten Lockert      | tholo at sigmasoft.com | Universe, n.:
2121 N. Lakeshore Dr. | tholo at openbsd.org   |         The problem.
Chapel Hill, NC 27514 |                     |



More information about the asterisk-dev mailing list