aboutsummaryrefslogtreecommitdiff
path: root/db2/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'db2/compat.h')
-rw-r--r--db2/compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/db2/compat.h b/db2/compat.h
new file mode 100644
index 0000000..5183bef
--- /dev/null
+++ b/db2/compat.h
@@ -0,0 +1,10 @@
+/* Compatibility gunk for the db library. */
+
+#include <sys/types.h>
+
+#define EFTYPE EINVAL
+
+/* Emulate Solaris llseek(). */
+typedef loff_t offset_t;
+
+extern int llseek (int fd, loff_t offset, int whence);