Fix the 64-bit macro definition of mips architecture
PATCH 1/1 Fix the 64-bit macro definition of mips architecture
The mips architecture gcc does not have a built-in __arch64__, you can also use "__BITS_PER_LONG == 64"
--- include/lapi/msgbuf.h | 2 +- include/lapi/sembuf.h | 2 +- include/lapi/shmbuf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
include/lapi/msgbuf.h +1 -1
@@ -17,7 +17,7 @@#if defined(__mips__)#define HAVE_MSQID64_DS -#if defined(__arch64__) +#if __BITS_PER_LONG ==64 /* * The msqid64_ds structure for the MIPS architecture. * Note extra padding because this structure is passed back and forth
include/lapi/sembuf.h +1 -1
@@ -24,7 +24,7 @@* Pad space is left for 2 miscellaneous 64-bit values on mips64, * but used for the upper 32 bit of the time values on mips32. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct semid64_ds { struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ long sem_otime; /* last semop time */
include/lapi/shmbuf.h +1 -1
@@ -27,7 +27,7 @@* data structure when moving to 64-bit time_t. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ size_t shm_segsz; /* size of segment (bytes) */
--
2.20.1
PATCH 1/1 Fix the 64-bit macro definition of mips architecture
Hi Viresh,
Please process the patch below.
Quoted 54 lines
The mips architecture gcc does not have a built-in
__arch64__, you can also use "__BITS_PER_LONG== 64"Signed-off-by sujiaxun <[email protected]>--- include/lapi/msgbuf.h | 2 +- include/lapi/sembuf.h | 2 +- include/lapi/shmbuf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)include/lapi/msgbuf.h +1
-1@@ -17,7 +17,7 @@#if defined(__mips__)#define HAVE_MSQID64_DS -#if defined(__arch64__) +#if __BITS_PER_LONG ==64 /* * The msqid64_ds structure for the MIPS architecture. * Note extra padding because this structure is passed back and forth include/lapi/sembuf.h +1
-1@@ -24,7 +24,7 @@* Pad space is left for 2 miscellaneous 64-bit values on mips64, * but used for the upper 32 bit of the time values on mips32. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct semid64_ds { struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ long sem_otime; /* last semop time */include/lapi/shmbuf.h +1
-2@@ -27,7 +27,7 @@* data structure when moving to 64-bit time_t. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ size_t shm_segsz; /* size of segment (bytes) */ --2.20.1
PATCH 1/1 Fix the 64-bit macro definition of mips architecture
Quoted 49 lines · sujiaxun
Hi Viresh,
Please process the patch below.
Quoted 44 lines
The mips architecture gcc does not have a built-in
__arch64__, you can also use "__BITS_PER_LONG== 64"Signed-off-by sujiaxun <[email protected]>--- include/lapi/msgbuf.h | 2 +- include/lapi/sembuf.h | 2 +- include/lapi/shmbuf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)include/lapi/msgbuf.h +1
-1@@ -17,7 +17,7 @@#if defined(__mips__)#define HAVE_MSQID64_DS -#if defined(__arch64__) +#if __BITS_PER_LONG ==64 /* * The msqid64_ds structure for the MIPS architecture. * Note extra padding because this structure is passed back and forth include/lapi/sembuf.h +1
-1@@ -24,7 +24,7 @@* Pad space is left for 2 miscellaneous 64-bit values on mips64, * but used for the upper 32 bit of the time values on mips32. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct semid64_ds { struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ long sem_otime; /* last semop time */include/lapi/shmbuf.h +0
-0@@ -27,7 +27,7 @@* data structure when moving to 64-bit time_t. */
Quoted 5 lines
include/lapi/shmbuf.h line 33
Quoted 5 lines
include/lapi/shmbuf.h +1
-1-#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ size_t shm_segsz; /* size of segment (bytes) */
Signature · 1 line
viresh
PATCH 1/1 Fix the 64-bit macro definition of mips architecture
In reply to sujiaxunHi,
Quoted 2 lines
The mips architecture gcc does not have a built-in
__arch64__, you can also use "__BITS_PER_LONG== 64"
Thanks for the fix, merged!
Please next time mark new version of the patchset with -vN switch (e.g. in this case: git format-patch origin/master -v2).
Kind regards,
Petr