Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312603 Details for
Bug 416983
x11-libs/libpciaccess fails to build on OS X due to missing sys/endian.h
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds OS X support to the endian checks in common_interface.c
common-interface-endian-osx.patch (text/plain), 724 bytes, created by
Benn Snyder
on 2012-05-21 22:07:00 UTC
(
hide
)
Description:
Adds OS X support to the endian checks in common_interface.c
Filename:
MIME Type:
Creator:
Benn Snyder
Created:
2012-05-21 22:07:00 UTC
Size:
724 bytes
patch
obsolete
>--- src/common_interface.old.c 2010-07-12 00:32:05.000000000 -0400 >+++ src/common_interface.c 2012-05-21 17:04:32.000000000 -0400 >@@ -52,7 +52,6 @@ > #endif /* linux */ > > #elif defined(__sun) >- > #include <sys/byteorder.h> > > #ifdef _BIG_ENDIAN >@@ -67,6 +66,21 @@ > # define HTOLE_32(x) (x) > #endif /* Solaris */ > >+#elif defined(__APPLE__) >+#include <libkern/OSByteOrder.h> >+ >+#ifdef __BIG_ENDIAN__ >+# define LETOH_16(x) OSSwapInt16(x) >+# define HTOLE_16(x) OSSwapInt16(x) >+# define LETOH_32(x) OSSwapInt32(x) >+# define HTOLE_32(x) OSSwapInt32(x) >+#else >+# define LETOH_16(x) (x) >+# define HTOLE_16(x) (x) >+# define LETOH_32(x) (x) >+# define HTOLE_32(x) (x) >+#endif /* Apple */ >+ > #else > > #include <sys/endian.h>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 416983
: 312603