mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Guillermo Rodríguez" <guille.rodriguez@gmail.com>
To: ptxdist@pengutronix.de
Cc: "Guillermo Rodríguez" <guille.rodriguez@gmail.com>
Subject: [ptxdist] [PATCH] udev-legacy: Fix build with recent glibc versions.
Date: Tue, 10 Dec 2019 19:55:36 +0100	[thread overview]
Message-ID: <20191210185536.23309-1-guille.rodriguez@gmail.com> (raw)

Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
---
 .../0003-include-sysmacros-for-new-glibc.patch  | 17 +++++++++++++++++
 patches/udev-182/series                         |  1 +
 2 files changed, 18 insertions(+)
 create mode 100644 patches/udev-182/0003-include-sysmacros-for-new-glibc.patch

diff --git a/patches/udev-182/0003-include-sysmacros-for-new-glibc.patch b/patches/udev-182/0003-include-sysmacros-for-new-glibc.patch
new file mode 100644
index 000000000..b2f8db670
--- /dev/null
+++ b/patches/udev-182/0003-include-sysmacros-for-new-glibc.patch
@@ -0,0 +1,17 @@
+Fix build with recent glibc releases where <sys/sysmacros.h> is no
+longer included as part of <sys/types.h>.
+
+Ref.: https://wiki.gentoo.org/wiki/Glibc_2.26_porting_notes/sysmacros.h
+
+Index: udev-182/src/libudev.h
+===================================================================
+--- udev-182.orig/src/libudev.h	2019-12-10 19:33:16.205447059 +0100
++++ udev-182/src/libudev.h	2019-12-10 19:33:27.965446957 +0100
+@@ -14,6 +14,7 @@
+ 
+ #include <stdarg.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ 
+ #ifdef __cplusplus
diff --git a/patches/udev-182/series b/patches/udev-182/series
index 74667acee..fe0693eb5 100644
--- a/patches/udev-182/series
+++ b/patches/udev-182/series
@@ -3,3 +3,4 @@
 0001-configure.ac-fix-FTBFS-with-new-glibc.patch
 0002-mtd-probe-fix-compilation.patch
 # 78be5e697ec01d52a38071705c42d96a  - git-ptx-patches magic
+0003-include-sysmacros-for-new-glibc.patch
-- 
2.21.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2019-12-10 18:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10 18:55 Guillermo Rodríguez [this message]
2020-01-12 12:52 ` Michael Olbrich
2020-01-13  8:47   ` Guillermo Rodriguez Garcia
2020-01-24 16:57     ` Michael Olbrich
2020-01-30 13:44       ` Michael Olbrich

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=20191210185536.23309-1-guille.rodriguez@gmail.com \
    --to=guille.rodriguez@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /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