summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-01-14 02:08:53 +0000
committerColin Watson <cjwatson@debian.org>2014-01-14 02:10:27 +0000
commitcb8693ff90e7df51d594245b6b956fc2bd064a7a (patch)
tree6457fe99e07224e3c8c03244e26e07b70c223c06
parent209f7314efe4aae98d000843b2f4c4614aafb3a3 (diff)
Translate __PMT() to __P() on non-glibc architectures
Forwarded: no Last-Update: 2010-03-26 Patch-Name: pmt-compat.patch
-rw-r--r--db.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/db.h b/db.h
index 8b7921f..3aad4ae 100644
--- a/db.h
+++ b/db.h
@@ -39,6 +39,11 @@
#include <sys/types.h>
#include <sys/cdefs.h>
+/* Some systems don't define the __PMT extension of __P; translation is safe */
+#ifndef __PMT
+#define __PMT(p) __P(p)
+#endif
+
#include <limits.h>
#ifdef __DBINTERFACE_PRIVATE