mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Justin Cormack <justin@specialbusservice.com>
To: musl@lists.openwall.com
Subject: ppc fix
Date: Sat, 18 Apr 2015 23:10:17 +0100	[thread overview]
Message-ID: <CAK4o1Wy02JWJYh9U_AD7_dVuySzTXznD-C-tdM5hPC-9mu6v4w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3545 bytes --]

Starting to look at powerppc64, can you apply the following patch to
fix the detection macro, it is __PPC64__ not __PPC64. Attached as well
in case MTA mangles it.

Justin


diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h
index acd825a..a3c2c90 100644
--- a/arch/powerpc/bits/syscall.h
+++ b/arch/powerpc/bits/syscall.h
@@ -194,7 +194,7 @@
 #define __NR_vfork                  189
 #define __NR_ugetrlimit             190
 #define __NR_readahead              191
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_mmap2                  192
 #define __NR_truncate64             193
 #define __NR_ftruncate64            194
@@ -208,7 +208,7 @@
 #define __NR_multiplexer            201
 #define __NR_getdents64             202
 #define __NR_pivot_root             203
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_fcntl64                204
 #endif
 #define __NR_madvise                205
@@ -231,7 +231,7 @@
 #define __NR_sched_setaffinity      222
 #define __NR_sched_getaffinity      223
 #define __NR_tuxcall                225
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_sendfile64             226
 #endif
 #define __NR_io_setup               227
@@ -261,7 +261,7 @@
 #define __NR_utimes                 251
 #define __NR_statfs64               252
 #define __NR_fstatfs64              253
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_fadvise64_64           254
 #endif
 #define __NR_rtas              255
@@ -299,7 +299,7 @@
 #define __NR_mknodat           288
 #define __NR_fchownat          289
 #define __NR_futimesat         290
-#if defined(__PPC64) && !defined(__ABI32)
+#if defined(__PPC64__) && !defined(__ABI32)
 #define __NR_newfstatat                291
 #else
 #define __NR_fstatat64         291
@@ -576,7 +576,7 @@
 #define SYS_vfork                  189
 #define SYS_ugetrlimit             190
 #define SYS_readahead              191
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_mmap2                  192
 #define SYS_truncate64             193
 #define SYS_ftruncate64            194
@@ -590,7 +590,7 @@
 #define SYS_multiplexer            201
 #define SYS_getdents64             202
 #define SYS_pivot_root             203
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_fcntl64                204
 #endif
 #define SYS_madvise                205
@@ -613,7 +613,7 @@
 #define SYS_sched_setaffinity      222
 #define SYS_sched_getaffinity      223
 #define SYS_tuxcall                225
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_sendfile64             226
 #endif
 #define SYS_io_setup               227
@@ -643,7 +643,7 @@
 #define SYS_utimes                 251
 #define SYS_statfs64               252
 #define SYS_fstatfs64              253
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_fadvise64_64           254
 #endif
 #define SYS_rtas               255
@@ -681,7 +681,7 @@
 #define SYS_mknodat            288
 #define SYS_fchownat           289
 #define SYS_futimesat          290
-#if defined(__PPC64) && !defined(__ABI32)
+#if defined(__PPC64__) && !defined(__ABI32)
 #define SYS_newfstatat         291
 #else
 #define SYS_fstatat64          291

[-- Attachment #2: ppcdiff --]
[-- Type: application/octet-stream, Size: 3259 bytes --]

diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h
index acd825a..a3c2c90 100644
--- a/arch/powerpc/bits/syscall.h
+++ b/arch/powerpc/bits/syscall.h
@@ -194,7 +194,7 @@
 #define __NR_vfork                  189
 #define __NR_ugetrlimit             190
 #define __NR_readahead              191
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_mmap2                  192
 #define __NR_truncate64             193
 #define __NR_ftruncate64            194
@@ -208,7 +208,7 @@
 #define __NR_multiplexer            201
 #define __NR_getdents64             202
 #define __NR_pivot_root             203
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_fcntl64                204
 #endif
 #define __NR_madvise                205
@@ -231,7 +231,7 @@
 #define __NR_sched_setaffinity      222
 #define __NR_sched_getaffinity      223
 #define __NR_tuxcall                225
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_sendfile64             226
 #endif
 #define __NR_io_setup               227
@@ -261,7 +261,7 @@
 #define __NR_utimes                 251
 #define __NR_statfs64               252
 #define __NR_fstatfs64              253
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define __NR_fadvise64_64           254
 #endif
 #define __NR_rtas		255
@@ -299,7 +299,7 @@
 #define __NR_mknodat		288
 #define __NR_fchownat		289
 #define __NR_futimesat		290
-#if defined(__PPC64) && !defined(__ABI32)
+#if defined(__PPC64__) && !defined(__ABI32)
 #define __NR_newfstatat		291
 #else
 #define __NR_fstatat64		291
@@ -576,7 +576,7 @@
 #define SYS_vfork                  189
 #define SYS_ugetrlimit             190
 #define SYS_readahead              191
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_mmap2                  192
 #define SYS_truncate64             193
 #define SYS_ftruncate64            194
@@ -590,7 +590,7 @@
 #define SYS_multiplexer            201
 #define SYS_getdents64             202
 #define SYS_pivot_root             203
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_fcntl64                204
 #endif
 #define SYS_madvise                205
@@ -613,7 +613,7 @@
 #define SYS_sched_setaffinity      222
 #define SYS_sched_getaffinity      223
 #define SYS_tuxcall                225
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_sendfile64             226
 #endif
 #define SYS_io_setup               227
@@ -643,7 +643,7 @@
 #define SYS_utimes                 251
 #define SYS_statfs64               252
 #define SYS_fstatfs64              253
-#if !defined(__PPC64) || defined(__ABI32)
+#if !defined(__PPC64__) || defined(__ABI32)
 #define SYS_fadvise64_64           254
 #endif
 #define SYS_rtas		255
@@ -681,7 +681,7 @@
 #define SYS_mknodat		288
 #define SYS_fchownat		289
 #define SYS_futimesat		290
-#if defined(__PPC64) && !defined(__ABI32)
+#if defined(__PPC64__) && !defined(__ABI32)
 #define SYS_newfstatat		291
 #else
 #define SYS_fstatat64		291

             reply	other threads:[~2015-04-18 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-18 22:10 Justin Cormack [this message]
2015-04-18 22:28 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK4o1Wy02JWJYh9U_AD7_dVuySzTXznD-C-tdM5hPC-9mu6v4w@mail.gmail.com \
    --to=justin@specialbusservice.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).