author | Jingning Ji <jingning.ji@oracle.com> |
Thu, 22 Sep 2016 16:33:05 -0700 | |
changeset 7117 | f7dc231928a9 |
parent 5182 | 78cc8a5782fa |
permissions | -rw-r--r-- |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
1 |
# Fix for building 64 bit. |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
2 |
# Need to determine if these changes are still applicable to the latest version, |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
3 |
# and if so, then submit them upstream. |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
4 |
--- a/sqlite3.c 2011-06-08 14:50:51.185910263 +0800 |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
5 |
+++ b/sqlite3.c 2011-06-08 14:51:57.485764632 +0800 |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
6 |
@@ -25579,7 +25579,11 @@ |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
7 |
#define osFchmod ((int(*)(int,mode_t))aSyscall[14].pCurrent) |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
8 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
9 |
#if defined(HAVE_POSIX_FALLOCATE) && HAVE_POSIX_FALLOCATE |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
10 |
+#if !defined(_LP64) && _FILE_OFFSET_BITS == 64 |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
11 |
+ { "fallocate", (sqlite3_syscall_ptr)posix_fallocate64, 0 }, |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
12 |
+#else |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
13 |
{ "fallocate", (sqlite3_syscall_ptr)posix_fallocate, 0 }, |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
14 |
+#endif |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
15 |
#else |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
16 |
{ "fallocate", (sqlite3_syscall_ptr)0, 0 }, |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
17 |
#endif |