summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h2
-rw-r--r--include/my_sys.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 48dd165dba1..b32a8fe6baa 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -238,7 +238,7 @@ C_MODE_END
/* Fix a bug in gcc 2.8.0 on IRIX 6.2 */
-#if SIZEOF_LONG == 4 && defined(__LONG_MAX__)
+#if SIZEOF_LONG == 4 && defined(__LONG_MAX__) && (__GNUC__ == 2 && __GNUC_MINOR__ == 8)
#undef __LONG_MAX__ /* Is a longlong value in gcc 2.8.0 ??? */
#define __LONG_MAX__ 2147483647
#endif
diff --git a/include/my_sys.h b/include/my_sys.h
index e21af78fcaa..ad42c99a86e 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -280,7 +280,7 @@ enum loglevel {
enum cache_type
{
- READ_CACHE,WRITE_CACHE,
+ TYPE_NOT_SET, READ_CACHE, WRITE_CACHE,
SEQ_READ_APPEND /* sequential read or append */,
READ_FIFO, READ_NET,WRITE_NET};