Dash:
[t2.git] / package / filesystem / udev / hotfix-glibc2.18.patch
blob1948c1658cccec90119164795727edeaf7151df0
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../udev/glibc-2.18.patch
5 # Copyright (C) 2011 - 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Fix build w/ dietlibc, probably related to implicit glibc include hierarchy:
19 extras/ata_id/ata_id.o: In function `disk_identify_fixup_uint16':
20 ata_id.c:(.text+0xd1): undefined reference to `le16toh'
22 - Rene Rebe <rene@exactcode.de>
24 --- udev-147/src/ata_id/ata_id.c.vanilla 2011-01-05 19:15:42.000000000 +0100
25 +++ udev-147/src/ata_id/ata_id.c 2011-01-05 19:15:53.000000000 +0100
26 @@ -39,6 +39,7 @@
27 #include <linux/hdreg.h>
28 #include <linux/fs.h>
29 #include <arpa/inet.h>
30 +#include <endian.h>
32 #include "libudev.h"
33 #include "libudev-private.h"
34 --- udev-167/src/libudev-device-private.c.vanilla 2018-08-08 17:46:08.247860535 +0000
35 +++ udev-167/src/libudev-device-private.c 2018-08-08 17:46:34.963860133 +0000
36 @@ -18,6 +18,7 @@
37 #include <fcntl.h>
38 #include <string.h>
39 #include <sys/stat.h>
40 +#include <sys/sysmacros.h>
42 #include "libudev.h"
43 #include "libudev-private.h"
44 --- udev-167/src/libudev-private.h.vanilla 2018-08-08 17:48:01.711858828 +0000
45 +++ udev-167/src/libudev-private.h 2018-08-08 17:48:06.659858754 +0000
46 @@ -16,6 +16,8 @@
47 #include <signal.h>
48 #include <stdint.h>
49 #include <stdbool.h>
50 +#include <sys/sysmacros.h>
52 #include "libudev.h"
54 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))