public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/mbuffer: fix build with powerpc
Date: Tue, 21 Apr 2020 14:38:52 +0200	[thread overview]
Message-ID: <20200421123852.3529227-1-fontaine.fabrice@gmail.com> (raw)

Fixes:
 - http://autobuild.buildroot.org/results/5f4e9079b3377a869ec7002a8138b80eb6194bbb

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0002-log.c-fix-build-with-powerpc.patch   | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/mbuffer/0002-log.c-fix-build-with-powerpc.patch

diff --git a/package/mbuffer/0002-log.c-fix-build-with-powerpc.patch b/package/mbuffer/0002-log.c-fix-build-with-powerpc.patch
new file mode 100644
index 0000000000..9873a72d01
--- /dev/null
+++ b/package/mbuffer/0002-log.c-fix-build-with-powerpc.patch
@@ -0,0 +1,38 @@
+From 9fbda0adbf59a44f5f0d725f5c31f88ccec7ca56 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 21 Apr 2020 14:30:20 +0200
+Subject: [PATCH] log.c: fix build with powerpc
+
+Include linux/limits.h if __linux__ is defined to avoid the following
+build failure:
+
+log.c: In function 'infomsg':
+log.c:123:12: error: 'PIPE_BUF' undeclared (first use in this function)
+   if (s <= PIPE_BUF) {
+            ^~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/5f4e9079b3377a869ec7002a8138b80eb6194bbb
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to thomas at maier-komor.de]
+---
+ log.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/log.c b/log.c
+index 6ea6507..738d493 100644
+--- a/log.c
++++ b/log.c
+@@ -29,7 +29,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#if defined(__linux)
++#if defined(__linux) || defined(__linux__)
+ #include <linux/limits.h>
+ #elif defined(__bsd)
+ #include <sys/syslimits.h>
+-- 
+2.25.1
+
-- 
2.25.1

             reply	other threads:[~2020-04-21 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 12:38 Fabrice Fontaine [this message]
2020-04-21 14:51 ` [Buildroot] [PATCH 1/1] package/mbuffer: fix build with powerpc Thomas Petazzoni

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=20200421123852.3529227-1-fontaine.fabrice@gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=buildroot@busybox.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox