summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>2003-05-28 13:28:07 +0000
committerMichael K. Johnson <johnsonm@redhat.com>2003-05-28 13:28:07 +0000
commit9cf630e720a200114bb3234b23ec48cabb9834a5 (patch)
treef43dced182ae17478d4ca6387e2db02095a2dcf5
parent03d415e0a6d6aa862814e7a92fb66d3e1011ccb3 (diff)
downloadlibaio-9cf630e720a200114bb3234b23ec48cabb9834a5.tar.gz
ppc bugfix from Julie DeWandellibaio.0-3-95.1
-rw-r--r--libaio.spec7
-rw-r--r--src/libaio.h12
2 files changed, 13 insertions, 6 deletions
diff --git a/libaio.spec b/libaio.spec
index 273d2c5..6dcb1fd 100644
--- a/libaio.spec
+++ b/libaio.spec
@@ -1,5 +1,5 @@
Name: libaio
-Version: 0.3.94
+Version: 0.3.95
Release: 1
Summary: Linux-native asynchronous I/O access library
Copyright: LGPL
@@ -7,7 +7,7 @@ Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
# Fix ExclusiveArch as we implement this functionality on more architectures
-ExclusiveArch: i386 x86_64 ia64 s390 s390x ppc
+ExclusiveArch: i386 x86_64 ia64 s390 s390x ppc ppc64
%description
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
@@ -56,6 +56,9 @@ make install prefix=$RPM_BUILD_ROOT/usr root=$RPM_BUILD_ROOT
%attr(0644,root,root) /usr/lib/libaio.a
%changelog
+* Wed May 28 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.95-1
+- ppc bugfix from Julie DeWandel
+
* Tue May 20 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.94-1
- symbol versioning fix from Ulrich Drepper
diff --git a/src/libaio.h b/src/libaio.h
index 8d6d1ca..a41c296 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -51,10 +51,14 @@ typedef enum io_iocb_cmd {
#define PADDED(x, y) x, y
#define PADDEDptr(x, y) x
#define PADDEDul(x, y) unsigned long x
-#elif defined(__PPC__)
-#define PADDED(x, y) x; unsigned y
-#define PADDEDptr(x, y) x; unsigned y
-#define PADDEDul(x, y) unsigned long x; unsigned y
+#elif defined(__PPC__) /* big endian, 32 bits */
+#define PADDED(x, y) unsigned y; x
+#define PADDEDptr(x, y) unsigned y; x
+#define PADDEDul(x, y) unsigned y; unsigned long x
+#elif defined(__powerpc64__) /* big endian, 64 bits */
+#define PADDED(x, y) unsigned y; x
+#define PADDEDptr(x,y) x
+#define PADDEDul(x, y) unsigned long x
#elif defined(__s390x__) /* big endian, 64 bits */
#define PADDED(x, y) unsigned y; x
#define PADDEDptr(x,y) x