Skip to content

Commit d2c366c

Browse files
committed
Fix CentOS 6 and quantal build failures
1 parent 1078a63 commit d2c366c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/my_sys.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ extern ulonglong my_getcputime(void);
10001000
#define MAP_NORESERVE 0 /* For irix and AIX */
10011001
#endif
10021002

1003+
/* Compatibility with pre linux 3.8 distributions */
1004+
#ifdef __linux__
1005+
#define MAP_HUGE_SHIFT 26
1006+
#endif
1007+
10031008
#ifdef HAVE_MMAP64
10041009
#define my_mmap(a,b,c,d,e,f) mmap64(a,b,c,d,e,f)
10051010
#else

0 commit comments

Comments
 (0)