about summary refs log tree commit diff
path: root/db2/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'db2/compat.h')
-rw-r--r--db2/compat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/db2/compat.h b/db2/compat.h
index 5183befd60..8652ad97ec 100644
--- a/db2/compat.h
+++ b/db2/compat.h
@@ -2,7 +2,9 @@
 
 #include <sys/types.h>
 
-#define EFTYPE EINVAL
+#ifndef EFTYPE
+# define EFTYPE EINVAL
+#endif
 
 /* Emulate Solaris llseek().  */
 typedef loff_t offset_t;