All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] perl-sys-cpu: fix build failures due to <sys/unistd.h>
@ 2018-10-08 19:55 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2018-10-08 19:55 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=2cd5d6eea13e2a4fcfcf864e2cb0b92ac196a3fe
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This commit adds a patch that drops an unneeded <sys/unistd.h>
include, as it causes build failures on uClibc/musl.

Fixes:

  http://autobuild.buildroot.net/results/a87116b34ee0c660537430638e38f7ebbf052024/

Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 .../0001-remove-extraneous-include.patch             | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/package/perl-sys-cpu/0001-remove-extraneous-include.patch b/package/perl-sys-cpu/0001-remove-extraneous-include.patch
new file mode 100644
index 0000000000..eb7d8f76a8
--- /dev/null
+++ b/package/perl-sys-cpu/0001-remove-extraneous-include.patch
@@ -0,0 +1,20 @@
+Drop <sys/unistd.h> include
+
+<sys/unistd.h> does not exist in musl or uClibc, so including it
+causes a build failure. In glibc, it simply redirects to <unistd.h>,
+so we can safely drop the inclusion of <sys/unistd.h>
+
+Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
+
+Index: b/CPU.xs
+===================================================================
+--- a/CPU.xs
++++ b/CPU.xs
+@@ -24,7 +24,6 @@
+  #include <winreg.h>
+ #else                /* other (try unix) */
+  #include <unistd.h>
+- #include <sys/unistd.h>
+ #endif
+ #if defined(__sun) || defined(__sun__) 
+  #include <sys/processor.h>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-08 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-08 19:55 [Buildroot] [git commit] perl-sys-cpu: fix build failures due to <sys/unistd.h> Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.